Skip to content

Commit

Permalink
fix gh token var
Browse files Browse the repository at this point in the history
  • Loading branch information
yapishu committed Oct 23, 2024
1 parent f686bbc commit ddf7899
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-ylem-container-prod-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
steps:
- name: Send repository dispatch to ylem (prod)
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
script: |
const { GH_TOKEN } = process.env;
await github.repos.createDispatchEvent({
const { GITHUB_TOKEN } = process.env;
await github.rest.actions.createDispatchEvent({
owner: 'tloncorp',
repo: 'ylem',
event_type: 'prod-breach-ship-docker',
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build-ylem-container-test-env.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Trigger internal azimuth-cli prod build
name: Trigger internal azimuth-cli test build

on:
workflow_dispatch:
Expand All @@ -9,10 +9,12 @@ jobs:
steps:
- name: Send repository dispatch to ylem (test)
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
script: |
const { GH_TOKEN } = process.env;
await github.repos.createDispatchEvent({
const { GITHUB_TOKEN } = process.env;
await github.rest.actions.createDispatchEvent({
owner: 'tloncorp',
repo: 'ylem',
event_type: 'test-breach-ship-docker',
Expand Down

0 comments on commit ddf7899

Please sign in to comment.