Skip to content

Commit

Permalink
fix: trigger api to build standalone (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazimAr authored Nov 19, 2024
1 parent 74ffded commit 619945e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ jobs:
registry: ecr
dockerfile: 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 }}"}}'
- name: Trigger Build Standalone
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_USER_TASKS }}
run: gh workflow run main.yml -R littlehorse-enterprises/lh-user-tasks-api

0 comments on commit 619945e

Please sign in to comment.