Skip to content

Commit 1f6a964

Browse files
authored
fix: retrying new release logic (#33)
This will be tagged with v1 to not break existing release workflows.
1 parent 7db31c4 commit 1f6a964

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 'Release'
22

33
on:
44
workflow_call:
5+
secrets:
6+
ACTIONS_BOT_TOKEN:
7+
required: true
58

69
jobs:
710
release:
@@ -17,6 +20,7 @@ jobs:
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({
@@ -35,6 +39,7 @@ jobs:
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

0 commit comments

Comments
 (0)