Skip to content

Commit af98511

Browse files
committed
[CI] Move GH_TOKEN to top-most env in release workflows
1 parent 15c49be commit af98511

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ env:
2424
COMMIT_SHA: ${{ github.sha }}
2525
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
2626
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
27+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
2728

2829
jobs:
2930
prerequisites:
@@ -189,8 +190,6 @@ jobs:
189190
git tag v$VERSION
190191
git push --tags origin
191192
- name: Changelog Config File
192-
env:
193-
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
194193
run: |
195194
repositoryTeam=$(gh api repos/$GITHUB_REPOSITORY/collaborators --jq 'map(select(.role_name == "admin") | .login) | tostring')
196195
repositoryTeam=$(sed 's/"//g' <<< ${repositoryTeam:1:-1})

.github/workflows/release-adhoc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616
COMMIT_SHA: ${{ github.sha }}
1717
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
1818
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
19+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
1920

2021
jobs:
2122
prerequisites:
@@ -57,8 +58,6 @@ jobs:
5758
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
5859
- uses: spring-io/spring-gradle-build-action@v2
5960
- name: Changelog Config File
60-
env:
61-
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
6261
run: |
6362
repositoryTeam=$(gh api repos/$GITHUB_REPOSITORY/collaborators --jq 'map(select(.role_name == "admin") | .login) | tostring')
6463
repositoryTeam=$(sed 's/"//g' <<< ${repositoryTeam:1:-1})

0 commit comments

Comments
 (0)