Feat(Medusa): Trigger staging deployment (#2695)
* initial implementation of trigger action * rename access token * update paths ignore
This commit is contained in:
committed by
olivermrbl
parent
daa31b78f6
commit
b023d846c3
3
.github/workflows/staging-release.yml
vendored
3
.github/workflows/staging-release.yml
vendored
@@ -4,6 +4,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
paths-ignore:
|
||||
- "docs/**"
|
||||
- "www/**"
|
||||
|
||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
|
||||
18
.github/workflows/trigger-staging-release.yml
vendored
Normal file
18
.github/workflows/trigger-staging-release.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Trigger staging deploy
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Staging Release and Publish]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: Bearer ${{secrets.STAGING_ACCESS_TOKEN}}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/@medusajs/medusa-staging/actions/workflows/deploy.yml/dispatches \
|
||||
-d '{"ref":"main"}'
|
||||
Reference in New Issue
Block a user