Skip to content

Commit 8e96946

Browse files
committed
add
1 parent f21ef61 commit 8e96946

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/website-deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Deploy Website
22

33
on:
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

1010
jobs:
@@ -13,9 +13,10 @@ jobs:
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

0 commit comments

Comments
 (0)