Skip to content

Commit f88ba86

Browse files
committed
fix: pass the release tag to the Releaser workflow
The release-please job did not expose tag_name, so the package job sent an empty ref and the Releaser workflow never ran for v0.7.0. Also make curl fail when the dispatch is rejected.
1 parent 7603b0f commit f88ba86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/release-please.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
outputs:
2222
release_created: ${{ steps.release.outputs.releases_created }}
23+
tag_name: ${{ steps.release.outputs.loopstructural--tag_name }}
2324
package:
2425
needs: release-please
2526
if: ${{ needs.release-please.outputs.release_created }}
@@ -34,7 +35,7 @@ jobs:
3435
3536
- name: Trigger release.yml
3637
run: |
37-
curl -X POST \
38+
curl --fail-with-body -X POST \
3839
-H "Authorization: token ${{ secrets.GH_PAT }}" \
3940
-H "Accept: application/vnd.github.v3+json" \
4041
https://api.github.com/repos/Loop3d/${{ env.PACKAGE_NAME }}/actions/workflows/releaser.yml/dispatches \

0 commit comments

Comments
 (0)