Skip to content

test workflow

test workflow #6

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.INTERNAL_APP_ID }}
private_key: ${{ secrets.INTERNAL_PRIVATE_KEY }}
- name: Workflow Dispatch with curl command
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ steps.generate-token.outputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/tier4/${{ env.DISPATCH_REPO }}/actions/workflows/update-beta-branch.yaml/dispatches \
-d '{"ref":"main"}'