From 3a1cef263a58dd9be962efee57bc8a8025f95f47 Mon Sep 17 00:00:00 2001 From: spypsy Date: Tue, 18 Mar 2025 10:16:03 +0000 Subject: [PATCH 1/2] fix: run nightly as bot --- .github/workflows/nightly-release-tag.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-release-tag.yml b/.github/workflows/nightly-release-tag.yml index 5b495358afd8..6a6eb3db3020 100644 --- a/.github/workflows/nightly-release-tag.yml +++ b/.github/workflows/nightly-release-tag.yml @@ -17,6 +17,8 @@ jobs: steps: # Check out the repository so we can read files and create tags. - uses: actions/checkout@v4 + with: + token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} # Extract the current release version from the manifest. # Then, create a nightly tag using the current version and the current UTC date. @@ -24,8 +26,8 @@ jobs: run: | current_version=$(jq -r '."."' .release-please-manifest.json) echo "Current version: $current_version" - # Format the tag as: -nightly. - nightly_tag="${current_version}-nightly.$(date -u +%Y%m%d)" + # Format the tag as: nightly-v- + nightly_tag="nightly-v${current_version}-$(date -u +%Y%m%d)" echo "Nightly tag: $nightly_tag" # Tag and push. git tag "$nightly_tag" From 3527c575ffa618f7cff70a414dd37dffdb4bc843 Mon Sep 17 00:00:00 2001 From: spypsy Date: Tue, 18 Mar 2025 10:17:32 +0000 Subject: [PATCH 2/2] undo naming change --- .github/workflows/nightly-release-tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-release-tag.yml b/.github/workflows/nightly-release-tag.yml index 6a6eb3db3020..7c21c05fe6d3 100644 --- a/.github/workflows/nightly-release-tag.yml +++ b/.github/workflows/nightly-release-tag.yml @@ -26,8 +26,8 @@ jobs: run: | current_version=$(jq -r '."."' .release-please-manifest.json) echo "Current version: $current_version" - # Format the tag as: nightly-v- - nightly_tag="nightly-v${current_version}-$(date -u +%Y%m%d)" + # Format the tag as: -nightly. + nightly_tag="${current_version}-nightly.$(date -u +%Y%m%d)" echo "Nightly tag: $nightly_tag" # Tag and push. git tag "$nightly_tag"