chore: add action to update starter dependencies + update reference actions (#9385)

* chore: add action to update starter dependencies

* change trigger type

* trigger generating references on new RC release
This commit is contained in:
Shahed Nasser
2024-10-03 10:21:12 +03:00
committed by GitHub
parent 225d00cd09
commit 97c193be1b
4 changed files with 28 additions and 9 deletions

19
.github/workflows/update-on-rc.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Update on RC Release
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- if: ${{ contains(github.event.release.tag_name, 'rc') }}
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.STARTER_ACCESS_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/medusajs/medusa-starter-default/actions/workflows/update-preview-deps.yml/dispatches \
-d '{"ref":"master"}'
generate-references:
uses: ./.github/workflows/generate-preview-references.yml