-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1.08 KB
/
regen-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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/cancel-workflow-action@0.4.0
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 }}