Skip to content

test workflow

test workflow #2

name: dispatch-push-event
on:
push:
branches:
- beta/v0.3.**
- ci/test-dispatch-push-event
env:
DISPATCH_REPO: pilot-auto.x1.eve
jobs:
dispatch-push-event:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Workflow Dispatch with curl command
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ steps.generate-token.outputs.token }}" \
https://api.github.com/repos/tier4/${{ env.DISPATCH_REPO }}/actions/workflows/update-beta-branch/dispatches \
-d '{"ref":"main"}'