Skip to content

Weekly

Weekly #1

Workflow file for this run

name: Weekly
on:
workflow_dispatch:
schedule:
- cron: "00 23 * * 4" # Run every Thursday at 23:00 UTC
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2 # Checkout the repository content to github runner.
- name: Set up Node.js
uses: actions/setup-node@v2 # Set up the Node environment to run the ipfs-car CLI
with:
node-version: "20"
- name: Install ipfs-car CLI
run: |
make ipfs-car
- name: Set up Go 1.21 for Basin
uses: actions/setup-go@v2 # Set up the Go environment to run the Basin CLI
with:
go-version: "1.21"
- name: Install Basin CLI
run: |
make basin
- name: Set up python
uses: actions/setup-python@v2 # Set up the python 3.11 environment
with:
python-version: "3.11"
- name: Install python dependencies
run: |
make install
- name: Execute python script # Run the main.py script to get the latest data
run: |
make run
# Define start, end, and verbose if desired (see `make run` for more info)
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: weekly stats update"
file_pattern: "Data.md history.csv cache.json assets/*"
commit_user_name: "vaults[bot]"