Skip to content

Commit

Permalink
ci: trigger api build on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
hazimoarafa committed Nov 16, 2024
1 parent 69820fc commit 4c3f575
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ui-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ jobs:
registry: ecr
context: ui
dockerfile: ui/Dockerfile

- name: Trigger API Build
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/littlehorse-enterprises/lh-user-tasks-api/dispatches \
-d '{"event_type":"build","client_payload":{"repository":"${{ github.repository }}","sha":"${{ github.sha }}"}}'

0 comments on commit 4c3f575

Please sign in to comment.