From 0abb055e51c9713fc75d75751ebfa488f575edf2 Mon Sep 17 00:00:00 2001 From: reid Date: Wed, 23 Oct 2024 12:03:42 -0500 Subject: [PATCH] fix prod autobuild for container --- .../workflows/build-ylem-container-prod-env.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-ylem-container-prod-env.yaml b/.github/workflows/build-ylem-container-prod-env.yaml index cef9410..b0be676 100644 --- a/.github/workflows/build-ylem-container-prod-env.yaml +++ b/.github/workflows/build-ylem-container-prod-env.yaml @@ -7,12 +7,18 @@ on: - solaris jobs: - trigger-prod: + trigger-test: + environment: prod runs-on: ubuntu-latest steps: - name: Internal prod build - uses: peter-evans/repository-dispatch@v3 + uses: actions/github-script@v7 with: - token: ${{ secrets.GH_TOKEN }} - repository: "tloncorp/ylem" - event-type: prod-breach-docker-ship + github-token: ${{ secrets.GH_TOKEN }} + script: | + await github.rest.repos.createDispatchEvent({ + owner: 'tloncorp', + repo: 'ylem', + event_type: 'prod-breach-ship-docker', + client_payload: { branch: 'main' } + });