diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2723b76..c3f7995 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -81,8 +81,11 @@ jobs: needs: docker_build steps: - name: Trigger deployment pipeline - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.DEPLOY_API_TOKEN }} - repository: wkk-offcial/bot_deployment - event-type: trigger-event + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.DEPLOY_API_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/WKK-Offcial/bot_deployment/actions/workflows/deploy.yml/dispatches \ + -d '{"ref":"master"}'