Skip to content

Commit

Permalink
use alternative dispatch action
Browse files Browse the repository at this point in the history
  • Loading branch information
yapishu committed Oct 23, 2024
1 parent d3ba361 commit 3fed72b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build-ylem-container-prod-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3fed72b

Please sign in to comment.