Skip to content

Commit

Permalink
feat(ci-cd): translate curl command to GitHub Action for repository d…
Browse files Browse the repository at this point in the history
…ispatch
  • Loading branch information
alphanome authored Oct 7, 2023
1 parent c8a590e commit a7e1fa1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
poetry publish --username __token__ --password ${{ secrets.PUBLIC_PYPI_API_TOKEN }}
- name: Initiate Website Deployment
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.CI_CD_TRIGGER_GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
"https://api.github.com/repos/alphanome-ai/sec-ai-deploy/dispatches" \
--data '{"event_type": "trigger-ci-cd"}'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CI_CD_TRIGGER_GITHUB_TOKEN }}
repository: alphanome-ai/sec-ai-deploy
event-type: trigger-ci-cd

0 comments on commit a7e1fa1

Please sign in to comment.