You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ma...@apache.org on 2025/11/26 13:05:39 UTC
(grails-gradle-publish) 01/01: [skip ci] add GH_TOKEN env to usages of `gh` client
This is an automated email from the ASF dual-hosted git repository.
matrei pushed a commit to branch release-updates-3
in repository https://gitbox.apache.org/repos/asf/grails-gradle-publish.git
commit 297556579859faac43e27db8d86edb701458a2be
Author: Mattias Reichel <ma...@gmail.com>
AuthorDate: Wed Nov 26 14:05:14 2025 +0100
[skip ci] add GH_TOKEN env to usages of `gh` client
---
.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)