File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1- name : Dispatch Developer Hub Workflow
1+ name : Dispatch Developer Hub on PR merge
22
33on :
4- push :
5- branches :
6- - main
4+ pull_request :
5+ types : [closed]
76
87jobs :
98 dispatch :
9+ # Only run this job if the pull request was merged into the main branch
10+ if : github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
1011 runs-on : ubuntu-latest
1112 steps :
1213 - name : Send repository_dispatch to phrase/developer-hub
1516 token : ${{ secrets.DISPATCH_DEVELOPER_HUB_TOKEN }}
1617 repository : phrase/developer-hub
1718 event-type : trigger-strings-workflow
18- client-payload : ' {"source": "phrase/openapi", "type": "update"}'
19+ client-payload : >-
20+ {
21+ "source": "phrase/openapi",
22+ "type": "update",
23+ "pr_author": "${{ github.event.pull_request.user.login }}",
24+ "pr_url": "${{ github.event.pull_request.html_url }}"
25+ }
You can’t perform that action at this time.
0 commit comments