GitHub Repository Dispatch Event
Trigger a GitHub Actions workflow or GitHub App webhook.
on:
repository_dispatch:
types: [locize/versionPublished]on:
push:
branches: [main]
repository_dispatch:
types: [locize/versionPublished]
jobs:
test1:
name: Test1 (conditional run)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: 'echo "field: ${{ github.event.client_payload.payload.version }}"'
- run: 'echo "payload: ${{ toJson(github.event.client_payload) }}"'
- run: echo baz
if: github.event.client_payload.payload.version == 'production'
test2:
name: Test2 (conditional step)
if: github.event.client_payload.payload.version == 'production'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: 'echo "field: ${{ github.event.client_payload.payload.version }}"'
- run: 'echo "payload: ${{ toJson(github.event.client_payload) }}"'

Last updated