-
-
Notifications
You must be signed in to change notification settings - Fork 724
34 lines (32 loc) · 1.01 KB
/
gen_fingerprints.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
name: gen_fingerprints
on:
push:
schedule:
# At 12:27AM every Saturday
- cron: '27 00 * * 6'
jobs:
gen_fingerprints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: pip install requests tabulate
- name: Refresh readme + fingerprints.json
run: python3 scripts/gen_fingerprints.py overwrite_json overwrite_readme
- name: Setup node.js
uses: actions/setup-node@v3
- name: Install prettier
run: npm install --save-dev --save-exact prettier
- name: Run prettier
run: npx prettier --write .
- name: Commit readme + fingerprints.json
uses: EndBug/add-and-commit@v9
with:
add: '["README.md", "fingerprints.json"]'
default_author: github_actions
message: "refresh README + fingerprints.json"