Skip to content

Commit

Permalink
Update create-tag-now.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Jan 19, 2025
1 parent 60d77cc commit 9241f22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-tag-now.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
script: |
console.log('::notice::Tag name: ${{ steps.repo-info.outputs.version }}')
await github.rest.git.createRef({
const result = await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.repo-info.outputs.version }}',
Expand All @@ -37,14 +37,14 @@ jobs:
console.log(error.message)
if(error.status == 422) {
console.log('::warning::Tag already exist, ignored!!!')
exit
return
}
console.log('::error::Tag creation failed with error ' + error.status)
console.log('')
console.log('DEBUG:')
throw error
})
console.log('OK')
console.log('OK' + result)
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 9241f22

Please sign in to comment.