File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: 'Release'
22
33on :
44 workflow_call :
5+ secrets :
6+ ACTIONS_BOT_TOKEN :
7+ required : true
58
69jobs :
710 release :
1720 - name : ' Get previous release tag'
1821 uses : ' actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7
1922 with :
23+ github-token : ' ${{ secrets.ACTIONS_BOT_TOKEN }}'
2024 script : |-
2125 try {
2226 const latestRelease = await github.rest.repos.getLatestRelease({
3539 - name : ' Create release'
3640 uses : ' actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7
3741 with :
42+ github-token : ' ${{ secrets.ACTIONS_BOT_TOKEN }}'
3843 script : |-
3944 const tag = "v" + process.env.NEW_VERSION;
4045
7378 - name : ' Update floating tag'
7479 uses : ' actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7
7580 with :
81+ github-token : ' ${{ secrets.ACTIONS_BOT_TOKEN }}'
7682 script : |-
7783 const tag = "v" + process.env.NEW_VERSION;
7884 const major = tag.split(".")[0];
You can’t perform that action at this time.
0 commit comments