File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6060 git push --tags
6161 # When triggered by the version bump commit, build the package and publish the release artifacts.
6262 build :
63- if : startsWith(github.event.commits[0].message, 'bump:')
63+ if : github.ref == 'refs/heads/main' && startsWith(github.event.commits[0].message, 'bump:')
6464 uses : ./.github/workflows/build.yaml
6565 permissions :
6666 contents : read
@@ -123,7 +123,7 @@ jobs:
123123 env :
124124 GH_TOKEN : ${{ secrets.REPO_ACCESS_TOKEN }}
125125 # Create the release including the artifacts and the SLSA L3 provenance.
126- run : gh release create `git describe --tags --abbrev=0` dist/* ${{ needs.provenance.outputs.attestation-name }} --notes-file RELEASE_NOTES.md
126+ run : TAG= `git describe --tags --abbrev=0` && gh release create $TAG dist/* ${{ needs.provenance.outputs.attestation-name }} --title $TAG --notes-file RELEASE_NOTES.md
127127 # Uncomment the following steps to publish to a PyPI server.
128128 # At the moment PyPI does not provide a mechanism to publish
129129 # the provenance. So, users have to download the provenance from
You can’t perform that action at this time.
0 commit comments