Skip to content

gen_fingerprints

gen_fingerprints #46

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"