Weekly #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Weekly | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 1 * * 1" # Run every Monday at 01:00 UTC | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo content | |
uses: actions/checkout@v4 # Checkout the repository content to github runner. | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 # 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@v4 # 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@v4 # Set up the python 3.11 environment | |
with: | |
python-version: "3.11" | |
- name: Install pipenv | |
run: | | |
python -m pip install --upgrade pipenv | |
- 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: "github-actions[bot]" | |
commit_user_email: "github-actions[bot]@users.noreply.github.com" | |
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" |