Skip to content

fix api version

fix api version #3

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: 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/dispatches \
-d '{"ref":"main"}'