File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 27
27
uses : actions/checkout@v4
28
28
with :
29
29
fetch-depth : 0
30
- token : ${{ secrets.GITHUB_TOKEN }}
30
+ token : ${{ secrets.RELEASE_TOKEN }}
31
31
32
32
- name : Setup Go
33
33
uses : actions/setup-go@v5
38
38
39
39
- name : Configure Git
40
40
env :
41
- TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ TOKEN : ${{ secrets.RELEASE_TOKEN }}
42
42
run : |
43
43
git config --global advice.detachedHead false
44
44
git config --global url."https://${TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
64
64
if : steps.changes.outputs.HAS_CHANGES == 'true'
65
65
env :
66
66
IS_MINOR : ${{ contains(inputs.release-as-minor, 'true') }}
67
+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
67
68
run : |
68
69
CURRENT_VERSION_PARTS=(${CURRENT_VERSION//./ })
69
70
MAJOR=${CURRENT_VERSION_PARTS[0]}
87
88
88
89
- name : Release New Version
89
90
if : ${{ success() && github.ref_name == 'master' && steps.changes.outputs.HAS_CHANGES == 'true' && !inputs.skip-release }}
91
+ env :
92
+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
90
93
run : |
91
94
git tag -a ${NEW_VERSION} -m "New version ${NEW_VERSION}"
92
95
echo "Pushing new tag to remote, which will trigger the Release workflow"
Original file line number Diff line number Diff line change 41
41
args : release --clean
42
42
env :
43
43
GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
44
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments