Skip to content

Commit

Permalink
trigger quix docs build (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-quix authored Jun 25, 2024
1 parent 890bff5 commit 66331f8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/trigger-quix-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Trigger Quix docs build

on:
push:
paths:
- 'docs/**'
branches:
- main

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger Quix docs build
env:
REPO: 'quixio/quix-docs'
PAT: ${{ secrets.QUIX_DOCS_PAT }}
run: |
RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -X POST \
-H "Authorization: token $PAT" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$REPO/dispatches \
-d '{"event_type":"cli_docs_updated"}')
if [ "$RESPONSE" -eq 204 ]; then
echo "Dispatch event sent successfully."
else
echo "Failed to send dispatch event. Response code: $RESPONSE"
exit 1
fi

0 comments on commit 66331f8

Please sign in to comment.