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

matrei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/grails-gradle-publish.git


The following commit(s) were added to refs/heads/main by this push:
     new f153fe5  [skip ci] add GH_TOKEN env to usages of `gh` client (#18)
f153fe5 is described below

commit f153fe57387534a8b7d541cee5c41c8e263864b7
Author: Mattias Reichel <[email protected]>
AuthorDate: Wed Nov 26 14:22:55 2025 +0100

    [skip ci] add GH_TOKEN env to usages of `gh` client (#18)
---
 .github/workflows/release.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index e622f74..826e4c7 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -148,24 +148,24 @@ jobs:
       - name: "📥 Download CHECKSUMS.txt and rename to CHECKSUMS"
         working-directory: grails-publish
         env:
-          TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           release_url=$(gh release view ${TAG} --json assets --repo 
${REPO_SLUG} --jq '.assets[] | select(.name == "CHECKSUMS.txt") | .url')
-          curl -f -L -H "Authorization: token $TOKEN" -o CHECKSUMS 
"$release_url"
+          curl -f -L -H "Authorization: token $GH_TOKEN" -o CHECKSUMS 
"$release_url"
       - name: "📥 Download PUBLISHED_ARTIFACTS.txt and rename to 
PUBLISHED_ARTIFACTS"
         working-directory: grails-publish
         env:
-          TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           release_url=$(gh release view ${TAG} --json assets --repo 
${REPO_SLUG} --jq '.assets[] | select(.name == "PUBLISHED_ARTIFACTS.txt") | 
.url')
-          curl -f -L -H "Authorization: token $TOKEN" -o PUBLISHED_ARTIFACTS 
"$release_url"
+          curl -f -L -H "Authorization: token $GH_TOKEN" -o 
PUBLISHED_ARTIFACTS "$release_url"
       - name: "📥 Download BUILD_DATE.txt and rename to BUILD_DATE"
         working-directory: grails-publish
         env:
-          TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           release_url=$(gh release view ${TAG} --json assets --repo 
${REPO_SLUG} --jq '.assets[] | select(.name == "BUILD_DATE.txt") | .url')
-          curl -f -L -H "Authorization: token $TOKEN" -o BUILD_DATE 
"$release_url"
+          curl -f -L -H "Authorization: token $GH_TOKEN" -o BUILD_DATE 
"$release_url"
       - name: "📅 Ensure source files use common date"
         run: |
           SOURCE_DATE_EPOCH=$(cat grails-publish/BUILD_DATE)

Reply via email to