Skip to content

Commit

Permalink
fix: retrying new release logic
Browse files Browse the repository at this point in the history
  • Loading branch information
verbanicm committed Oct 24, 2024
1 parent 7db31c4 commit 38fafcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: 'Release'

on:
workflow_call:
secrets:
ACTIONS_BOT_TOKEN:
required: true

jobs:
release:
Expand All @@ -17,6 +20,7 @@ jobs:
- name: 'Get previous release tag'
uses: 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7
with:
github-token: '${{ secrets.ACTIONS_BOT_TOKEN }}'
script: |-
try {
const latestRelease = await github.rest.repos.getLatestRelease({
Expand All @@ -35,6 +39,7 @@ jobs:
- name: 'Create release'
uses: 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7
with:
github-token: '${{ secrets.ACTIONS_BOT_TOKEN }}'
script: |-
const tag = "v" + process.env.NEW_VERSION;
Expand Down

0 comments on commit 38fafcc

Please sign in to comment.