Skip to content

Regen Data

Regen Data #3

Workflow file for this run

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
env:
HUSKY: 0
- 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 }}