Skip to content

Commit

Permalink
ci(semantic-release): register the created tag explicitly with JuliaR…
Browse files Browse the repository at this point in the history
…egistrator

In most scenarios the `main` branch is equivalent to the generated tag.
However, when signing commits the tag will be a unique object that can
be referenced instead. The tag will also be more stable/less likely to
change during the time the registration process runs, which in general
is likely not an issue but it does not hurt to guard against.
bauglir committed Mar 28, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
bauglir Joris Kraak
1 parent d89de67 commit 7a79817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -28,4 +28,4 @@ jobs:
uses: peter-evans/commit-comment@v3
if: steps.semantic-release.outputs.new_release_published == 'true'
with:
body: '@JuliaRegistrator register branch=main'
body: '@JuliaRegistrator register branch=${{ steps.semantic-release.outputs.new_release_git_tag }}'

0 comments on commit 7a79817

Please sign in to comment.