diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9e0388..28ca2e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -188,8 +188,9 @@ jobs: id-token: write steps: - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.EVALUATION_FUNCTION_BASE_BUILD_TRIGGER_TOKEN }} - repository: ${{ github.repository_owner }}/evaluation-function-base - event-type: trigger-build + env: + GH_TOKEN: ${{ secrets.SHIMMY_DEPLOY_TOKEN }} + run: | + gh api repos/${{ github.repository_owner }}/evaluation-function-base/dispatches \ + --method POST \ + -f event_type=trigger-build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a48682..ac45a18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,9 +70,10 @@ jobs: - name: Trigger evaluation-function-base release if: steps.idempotency.outputs.skip == 'false' - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.EVALUATION_FUNCTION_BASE_BUILD_TRIGGER_TOKEN }} - repository: ${{ github.repository_owner }}/evaluation-function-base - event-type: release - client-payload: '{"shimmy_version": "${{ steps.version.outputs.version }}"}' + env: + GH_TOKEN: ${{ secrets.SHIMMY_DEPLOY_TOKEN }} + run: | + gh api repos/${{ github.repository_owner }}/evaluation-function-base/dispatches \ + --method POST \ + -f event_type=release \ + -F client_payload='{"shimmy_version": "${{ steps.version.outputs.version }}"}'