File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Deploy Website
22
33on :
44 push :
5- branches : [ plugin_api_v2 ]
6- paths :
7- - ' plugins.json'
5+ branches : [ plugin_api_v2, add_deploy_trigger ]
6+ # paths:
7+ # - 'plugins.json'
88 workflow_dispatch :
99
1010jobs :
1313 steps :
1414 - name : Dispatch event
1515 run : |
16- curl -L \
16+ http_status=$( curl -L -f -s -o /dev/null -w "%{http_code}" \
1717 -X POST \
1818 -H "Accept: application/vnd.github+json" \
1919 -H "Authorization: Bearer ${{ secrets.DEPLOY_WEBSITE }}" \
2020 https://api.github.com/repos/Flow-Launcher/flow-launcher.github.io/dispatches \
21- -d '{"event_type":"deploy"}'
21+ -d '{"event_type":"deploy"}')
22+ if [ "$http_status" -ne 200 ]; then echo "Error: Deploy trigger failed, HTTP status code is $http_status"; exit 1; fi
You can’t perform that action at this time.
0 commit comments