diff --git a/.github/workflows/build-ylem-container-prod-env.yaml b/.github/workflows/build-ylem-container-prod-env.yaml index 575bee5..cef9410 100644 --- a/.github/workflows/build-ylem-container-prod-env.yaml +++ b/.github/workflows/build-ylem-container-prod-env.yaml @@ -10,16 +10,9 @@ jobs: trigger-prod: runs-on: ubuntu-latest steps: - - name: Send repository dispatch to ylem (prod) - uses: actions/github-script@v6 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + - name: Internal prod build + uses: peter-evans/repository-dispatch@v3 with: - script: | - const { GITHUB_TOKEN } = process.env; - await github.rest.actions.createDispatchEvent({ - owner: 'tloncorp', - repo: 'ylem', - event_type: 'prod-breach-ship-docker', - client_payload: { branch: 'main' } - }); + token: ${{ secrets.GH_TOKEN }} + repository: "tloncorp/ylem" + event-type: prod-breach-docker-ship