File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1515name : Create release PR for dist
1616
1717on :
18- push :
19- branches :
20- - temp-build-branch
18+ workflow_dispatch :
2119
2220jobs :
2321 create-pr :
2422 runs-on : ubuntu-latest
23+ permissions :
24+ pull-requests : write
25+ contents : write
2526 steps :
2627 - name : Checkout code
2728 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 7676 fi
7777 git commit -m "Update dist folder [skip ci]"
7878 git push --force origin temp-build-branch
79+
80+ - name : Trigger Create Release Workflow
81+ uses : benc-uk/workflow-dispatch@v1
82+ with :
83+ workflow : ' Create release PR for dist'
84+ ref : ' temp-build-branch'
85+ token : ${{ secrets.GH_MERGE_TOKEN }} # Use the same token that pushed, it needs 'workflows: write' permissions
86+ inputs : ' { "source_run_id": "${{ github.run_id }}" }' # Optional: Pass the run ID for traceability
You can’t perform that action at this time.
0 commit comments