-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (28 loc) · 847 Bytes
/
main.yml
File metadata and controls
32 lines (28 loc) · 847 Bytes
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
# Runs the Node.js script that generates the index.json file
# -Tom16
name: "Generate index.json"
on:
workflow_dispatch:
push:
branches: [master]
# pull_request:
permissions:
contents: write
pull-requests: read
jobs:
generate-index:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.12.x
cache: npm
cache-dependency-path: Extras/indexer/package-lock.json
- name: Run indexer.js
run: node ./Extras/indexer/indexer.js
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update index.json