Merge pull request #463 from arduino/Refinements-to-Configure-GIGA-R1… #471
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: deploy | |
on: | |
repository_dispatch: | |
types: deploy | |
push: | |
paths: | |
- 'content/**' | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
ZENDESK_USER: ${{ secrets.ZENDESK_USER }} | |
ZENDESK_PASS: ${{ secrets.ZENDESK_TOKEN }} | |
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} | |
ALGOLIA_INDEXER_KEY: ${{ secrets.ALGOLIA_INDEXER_KEY }} | |
ALGOLIA_INDEX: ${{ secrets.ALGOLIA_INDEX }} | |
HC_BOT_TOKEN: ${{ secrets.HC_BOT_TOKEN}} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.HC_BOT_TOKEN }} | |
- name: Deploy | |
run: | | |
cd _deploy | |
npm install | |
cd .. | |
node _deploy/zendesk.mjs content '*/*/*.md' https://arduino.zendesk.com/api/v2/help_center --wait 60 --deploy | |
- name: Commit any/all changes | |
run: | | |
git config user.name hc-bot | |
git config user.email [email protected] | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Update front matter [skip ci]" && git push |