Skip to content

Commit

Permalink
ci(semantic-release): notify JuliaRegistrator only upon new releases
Browse files Browse the repository at this point in the history
If the release process successfully ran but did not result in a new
release getting published, JuliaRegistrator should not be notified. This
was a situation that was unlikely to happen in this repository due to
its feature branch/development/main workflow, but it would have
triggered incorrectly otherwise.
  • Loading branch information
bauglir committed Mar 28, 2024
1 parent b3b2c23 commit d89de67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: actions/checkout@v4
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -25,5 +26,6 @@ jobs:
@ethima/semantic-release-configuration
- name: Notify JuliaRegistrator of new release
uses: peter-evans/commit-comment@v3
if: steps.semantic-release.outputs.new_release_published == 'true'
with:
body: '@JuliaRegistrator register branch=main'

0 comments on commit d89de67

Please sign in to comment.