File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments