Skip to content

Commit

Permalink
tag on ref as well as release (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan authored Jan 15, 2025
1 parent b98bfd7 commit 5b3ddef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ jobs:
const refData = await github.rest.git.getRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'tags/${{ inputs.git_ref }}'
ref: '${{ (needs.check_tag.outputs.type == 'release' && format('tags/{0}', inputs.git_ref)) || inputs.git_ref }}'
});
if (refData.status !== 200) {
throw new Error('Failed to fetch existing tag');
Expand Down

0 comments on commit 5b3ddef

Please sign in to comment.