Commit 9bbaec1d1a1 for woocommerce
commit 9bbaec1d1a188c0cf02d538b85be91c03f1c38c9
Author: Jorge A. Torres <jorge.torres@automattic.com>
Date: Mon Jul 6 15:56:04 2026 +0100
Add build date to nightly release notes (#66154)
diff --git a/.github/workflows/nightly-builds.yml b/.github/workflows/nightly-builds.yml
index 3925549c3fb..c78aa815bc6 100644
--- a/.github/workflows/nightly-builds.yml
+++ b/.github/workflows/nightly-builds.yml
@@ -63,3 +63,23 @@ jobs:
asset_name: woocommerce-${{ env.SOURCE_REF }}-nightly.zip
asset_content_type: application/zip
max_releases: 1
+
+ - name: 'Update nightly release notes'
+ uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ const sourceRef = process.env.SOURCE_REF;
+ const builtAt = new Date().toISOString().replace('T', ' ').replace(/\..+/, ' UTC');
+ const body = [
+ `Nightly build, regenerated every night from \`${ sourceRef }\`.`,
+ '',
+ `Last update: **${ builtAt }**`,
+ ].join('\n');
+
+ await github.rest.repos.updateRelease({
+ ...context.repo,
+ release_id: Number(process.env.RELEASE_ID),
+ body,
+ target_commitish: sourceRef,
+ });