-
Notifications
You must be signed in to change notification settings - Fork 43
49 lines (39 loc) · 1.18 KB
/
update-addon-history.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
45
46
47
48
49
name: Update Add-on Info
on:
workflow_dispatch:
schedule:
- cron: "00 02 * * *"
defaults:
run:
working-directory: scripts/addon-parser
jobs:
add-on-update:
name: Update Add-ons
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache addon-parser npm node nodules
uses: actions/cache@v3
id: nodecache
with:
path: |
~/.npm
scripts/addon-parser/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('scripts/addon-parser/package.json') }}
- name: Set Node Version
uses: actions/setup-node@master
with:
node-version: 18.x
- name: Install dependencies
if: steps.nodecache.outputs.cache-hit != 'true'
run: npm install
- name: Run addon-parser for Leia branch
run: node app.js --kv=matrix
- name: Run addon-parser for Matrix branch and get site stats
run: node app.js --kv=nexus --getstats
- name: Push new files back
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: "main"