Trigger Staging Deployment #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Staging Deployment | |
on: | |
workflow_run: | |
workflows: [Trigger Release and Publish] | |
types: | |
- completed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
curl -X POST \ | |
-H "Authorization: Bearer ${{ secrets.STAGING_DEPLOY_ACCESS_TOKEN }}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/medusajs/staging/actions/workflows/deploy.yml/dispatches \ | |
-d '{"ref":"main"}' |