Skip to content

Commit 3bf12e0

Browse files
authored
Update release-please.yml
1 parent fe8553d commit 3bf12e0

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ jobs:
2626
if: ${{ needs.release-please.outputs.release_created }}
2727
runs-on: ubuntu-latest
2828
steps:
29-
- name: Trigger build for pypi and upload
29+
- name: Extract tag name
30+
id: tag
31+
run: |
32+
full_tag="${{ needs.release-please.outputs.tag_name }}"
33+
tag="${full_tag#*--}" # removes everything before the --
34+
echo "tag=$tag" >> $GITHUB_OUTPUT
35+
36+
- name: Trigger release.yml
3037
run: |
3138
curl -X POST \
32-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
33-
-H "Accept: application/vnd.github.v3+json" \
34-
https://api.github.com/repos/Loop3d/${{env.PACKAGE_NAME}}/actions/workflows/release.yml/dispatches \
35-
-d '{"ref":"master"}'
39+
-H "Authorization: token ${{ secrets.GH_PAT }}" \
40+
-H "Accept: application/vnd.github.v3+json" \
41+
https://api.github.com/repos/Loop3d/${{ env.PACKAGE_NAME }}/actions/workflows/release.yml/dispatches \
42+
-d "{\"ref\":\"${{ steps.tag.outputs.tag }}\"}"
3643

0 commit comments

Comments
 (0)