We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114bf20 commit 993809eCopy full SHA for 993809e
.github/workflows/release.yml
@@ -78,9 +78,9 @@ jobs:
78
git push --force origin temp-build-branch
79
80
- name: Trigger Create Release Workflow
81
- run: |
82
- curl -X POST \
83
- -H "Authorization: Bearer ${{ secrets.GH_MERGE_TOKEN }}" \
84
- -H "Accept: application/vnd.github.v3+json" \
85
- https://api.github.com/repos/googlemaps-samples/js-api-samples/actions/workflows/dist-pr.yml/dispatches \
86
- -d '{"ref":"main"}'
+ uses: benc-uk/workflow-dispatch@v1
+ with:
+ workflow: dist-pr.yml
+ ref: 'temp-build-branch'
+ token: ${{ secrets.GH_APPROVE_TOKEN }} # Use the same token that pushed, it needs 'workflows: write' permissions
+ inputs: '{ "source_run_id": "${{ github.run_id }}" }' # Optional: Pass the run ID for traceability
0 commit comments