File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -121,4 +121,20 @@ jobs:
121121 -H "X-GitHub-Api-Version: 2022-11-28" \
122122 -d '{"ref":"master","inputs":{}}'
123123
124- shell : bash
124+ shell : bash
125+
126+ trigger_docs_deploy :
127+ runs-on : ubuntu-latest
128+ needs :
129+ - build_and_deploy_docs
130+ steps :
131+ - uses : actions/checkout@v3
132+ - name : repository dispatch
133+ run : |
134+ curl -X POST https://api.github.com/repos/aperture-data/docs/actions/workflows/64451786/dispatches \
135+ -H "Accept: application/vnd.github+json" \
136+ -H "Authorization: Bearer ${{ secrets.GITHUBPAT }}" \
137+ -H "X-GitHub-Api-Version: 2022-11-28" \
138+ -d '{"ref":"master","inputs":{}}'
139+
140+ shell : bash
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ create_release() {
1717
1818 command=" curl -s -o release.json -w '%{http_code}' \
1919 --request POST \
20- --header 'Accept: application/vnd.github.v3 +json' \
21- --header 'Authorization: token ${token} ' \
22- --header 'content-type: application/json ' \
20+ --header 'Accept: application/vnd.github+json' \
21+ --header 'Authorization: Bearer ${token} ' \
22+ --header 'X-GitHub-Api-Version: 2022-11-28 ' \
2323 --data '{\" tag_name\" : \" ${tag} \" , \" name\" : \" ${tag} \" , \" body\" :\" Release ${tag} \" }' \
2424 https://api.github.com/repos/$user /$repo /releases"
2525 http_code=` eval $command `
You can’t perform that action at this time.
0 commit comments