This is an automated email from the ASF dual-hosted git repository.

matrei pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/grails-quartz.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new 6397c21  [skip ci] fix release.yaml
6397c21 is described below

commit 6397c218880a64ee998ac7f2fe50f96b4644eb90
Author: Mattias Reichel <[email protected]>
AuthorDate: Thu Oct 16 18:06:15 2025 +0200

    [skip ci] fix release.yaml
    
    Need explicit ref on checkout or the pre-release tagged
    commit will not be selected.
---
 .github/workflows/release.yml | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fe6d19e..8ebc279 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -43,6 +43,7 @@ jobs:
       - name: "📥 Checkout repository"
         uses: actions/checkout@v5
         with:
+          ref: ${{ env.TAG }}
           token: ${{ secrets.GITHUB_TOKEN }} # This should not be needed as 
${{ github.token }} is the default, but there have been issues with it.
       - name: "📅 Store common build date" # to ensure a reproducible build
         run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> 
"$GITHUB_ENV"
@@ -125,8 +126,9 @@ jobs:
       - name: "📥 Checkout repository"
         uses: actions/checkout@v5
         with:
-          token: ${{ secrets.GITHUB_TOKEN }} # This should not be needed as 
${{ github.token }} is the default, but there have been issues with it.
           path: ${{ env.REPO_NAME }}
+          ref: ${{ env.TAG }}
+          token: ${{ secrets.GITHUB_TOKEN }} # This should not be needed as 
${{ github.token }} is the default, but there have been issues with it.
       - name: "🗑️ Remove unnecessary files"
         working-directory: ${{ env.REPO_NAME }}
         run: |
@@ -306,6 +308,7 @@ jobs:
         uses: actions/checkout@v5
         with:
           path: ${{ env.REPO_NAME }}
+          ref: ${{ env.TAG }}
       - name: "📝 Fetch new sha for the release tag after pre-prelease commit"
         env:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -323,8 +326,15 @@ jobs:
           export DIST_SVN_REVISION=$(awk '/Last Changed Rev:/ {print $4}' 
dev-repo/DIST_SVN_REVISION.txt)
           
           echo "::group::Grails PMC Vote Email"
+          echo ""
+          echo "TO:"
           echo "*************************************************"
-          echo "Subject: [VOTE] Release ${PROJECT_NAME} ${VERSION}"
+          echo "[email protected]"
+          echo "*************************************************"
+          echo ""
+          echo "Subject:"
+          echo "*************************************************"
+          echo "[VOTE] Release ${PROJECT_NAME} ${VERSION}"
           echo "*************************************************"
           echo "Body:"
           echo "*************************************************"
@@ -339,7 +349,10 @@ jobs:
     steps:
       - name: "📝 Establish release version"
         run: echo "VERSION=${TAG#v}" >> "$GITHUB_ENV"
-      - uses: actions/checkout@v5
+      - name: "📥 Checkout repository"
+        uses: actions/checkout@v5
+        with:
+          ref: ${{ env.TAG }}
       - name: "Setup SVN and Tools"
         run: sudo apt-get install -y subversion subversion-tools tree 
gettext-base
       - name: "🗳 MANUAL - Confirm Grails PMC Vote succeeded"
@@ -355,7 +368,7 @@ jobs:
           echo ""
           echo "TO:"
           echo "*************************************************"
-          echo "[email protected]
+          echo "[email protected]"
           echo "*************************************************"
           echo ""
           echo "Subject:"
@@ -398,6 +411,7 @@ jobs:
       - name: "📥 Checkout repository"
         uses: actions/checkout@v5
         with:
+          ref: ${{ env.TAG }}
           token: ${{ secrets.GITHUB_TOKEN }}
       - name: "📅 Ensure Common Build Date" # to ensure a reproducible build
         run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> 
"$GITHUB_ENV"
@@ -434,6 +448,7 @@ jobs:
       - name: "📥 Checkout repository"
         uses: actions/checkout@v5
         with:
+          ref: ${{ env.TAG }}
           token: ${{ secrets.GITHUB_TOKEN }}
       - name: "☕️ Setup JDK"
         uses: actions/setup-java@v5

Reply via email to