Skip to content

Commit

Permalink
Update deployment pipeline to use curl command
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootGan committed Mar 14, 2024
1 parent b4689b9 commit 1be6e1d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}'

0 comments on commit 1be6e1d

Please sign in to comment.