Regen Data #2
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: 'Regen Data' | |
on: | |
workflow_dispatch: | |
jobs: | |
regen: | |
runs-on: ubuntu-latest | |
steps: | |
# third-party action that cancels previous runs | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout titanium-builds | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: yarn | |
- name: Generate data | |
run: node scripts/generate.mjs | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit changes | |
id: committed | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'chore: update module list' | |
commit_options: '--no-verify' | |
- name: Repository Dispatch | |
if: steps.committed.outputs.changes_detected == 'true' | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
event-type: deploy | |
token: ${{ secrets.REGEN_BUILDS_DOCS_GITHUB_TOKEN }} |