Skip to content

use alternate dispatch action #4

use alternate dispatch action

use alternate dispatch action #4

name: Trigger internal azimuth-cli prod build
on:
workflow_dispatch:
push:
branches:
- solaris
jobs:
trigger-prod:
runs-on: ubuntu-latest
steps:
- name: Send repository dispatch to ylem (prod)
uses: actions/github-script@v6

Check failure on line 14 in .github/workflows/build-ylem-container-prod-env.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-ylem-container-prod-env.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
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' }
});