From 619945ee2061f17b8a08cadfee823d489caf09b0 Mon Sep 17 00:00:00 2001 From: Hazim Arafa Date: Tue, 19 Nov 2024 13:21:53 -0800 Subject: [PATCH] fix: trigger api to build standalone (#22) --- .github/workflows/main.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 710b8f5..a579328 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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