Skip to content

Commit

Permalink
fix: Adds repository event dispatch validation
Browse files Browse the repository at this point in the history
  • Loading branch information
moraesjeremias committed Feb 23, 2024
1 parent 88926dc commit 594e81a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,13 @@ jobs:
- name: Trigger repository dispatch for crawler build
shell: bash
run: |
curl \
curl -s -o /dev/null -w "%{http_code}" \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
${{ secrets.CRAWLER_BUILD_URL}} \
-d '{"event_type": "lc_crawler_build", "client_payload": {"tag": "${GITHUB_REF#refs/tags/}"}}'
-d '{"event_type": "lc_crawler_build", "client_payload": {"tag": "${GITHUB_REF#refs/tags/}"}}' \
| grep -q "200"
# can extend binary publish 'needs' to include more releases i.e. arm64 in future
binary_publish:
Expand Down

0 comments on commit 594e81a

Please sign in to comment.