mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2025-12-22 20:21:57 +00:00
Update trigger_rebuild.yaml
This commit is contained in:
17
.github/workflows/trigger_rebuild.yaml
vendored
17
.github/workflows/trigger_rebuild.yaml
vendored
@@ -11,10 +11,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Trigger container rebuild
|
- name: Trigger container rebuild
|
||||||
run: |
|
run: |
|
||||||
curl -L \
|
response=$(curl -L \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.PUBLIC_REPO_SYNC_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
https://api.github.com/repos/Cian-H/my_nvim/dispatches \
|
-w "%{http_code}" \
|
||||||
-d '{"event_type":"rebuild-container","client_payload":{"repository":"${{ github.repository }}"}}'
|
-o /dev/null \
|
||||||
|
https://api.github.com/repos/OWNER/REPO/dispatches \
|
||||||
|
-d '{"event_type":"rebuild-container","client_payload":{"repository":"${{ github.repository }}"}}')
|
||||||
|
|
||||||
|
if [ "$response" -ne 200 ]; then
|
||||||
|
echo "Failed to trigger workflow. HTTP status code: $response"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Successfully triggered workflow"
|
||||||
|
|||||||
Reference in New Issue
Block a user