Codeowners update #369
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: Sync Plugins to CMS | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
sync-to-cms: | |
# Only run if the merged PR wasn't an automated PR for synching from the cms to the repo | |
if: github.event.pull_request.merged && !contains(github.event.pull_request.labels.*.name, 'cms_sync') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Using Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '*' | |
cache: 'npm' | |
check-latest: true | |
- name: Install dependencies | |
run: npm install | |
- name: Sync plugins to CMS | |
env: | |
SANITY_API_TOKEN: ${{ secrets.SANITY_API_TOKEN }} | |
SANITY_PROJECT_ID: ${{ secrets.SANITY_PROJECT_ID }} | |
SANITY_DATASET: ${{ secrets.SANITY_DATASET }} | |
run: npx tsx bin/sync_plugins_to_cms.js |