Skip to content

Commit

Permalink
Merge pull request #5 from tloncorp/reid/workflow-fix
Browse files Browse the repository at this point in the history
Fix workflow for internal build
  • Loading branch information
yapishu authored Oct 23, 2024
2 parents 255c4a5 + 0abb055 commit 4de938c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-ylem-container-prod-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ on:
- solaris

jobs:
trigger-prod:
trigger-test:
environment: prod
runs-on: ubuntu-latest
steps:
- name: Send repository dispatch to ylem (prod)
uses: actions/github-script@v6
- name: Internal prod build
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const { GITHUB_TOKEN } = process.env;
await github.repos.createDispatchEvent({
await github.rest.repos.createDispatchEvent({
owner: 'tloncorp',
repo: 'ylem',
event_type: 'prod-breach-ship-docker',
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/build-ylem-container-test-env.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: Trigger internal azimuth-cli prod build
name: Trigger internal azimuth-cli test build

on:
workflow_dispatch:

jobs:
trigger-test:
environment: test
runs-on: ubuntu-latest
steps:
- name: Send repository dispatch to ylem (test)
uses: actions/github-script@v6
- name: Internal test build
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const { GITHUB_TOKEN } = process.env;
await github.repos.createDispatchEvent({
await github.rest.repos.createDispatchEvent({
owner: 'tloncorp',
repo: 'ylem',
event_type: 'test-breach-ship-docker',
Expand Down

0 comments on commit 4de938c

Please sign in to comment.