Skip to content

Daily Fetch

Daily Fetch #1200

Workflow file for this run

name: Daily Fetch
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Build awesome-go-rank from source
run: go build -o "$RUNNER_TEMP/awesome-go-rank" ./cmd
- name: Update rankings and snapshots
env:
GITHUB_TOKEN: ${{ secrets.API_TOKEN }}
run: |
"$RUNNER_TEMP/awesome-go-rank"
- name: Commit and push generated data
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_message: "chore: update ranking data"
commit_user_name: GitHub Actions
commit_user_email: actions@github.com
file_pattern: README.md docs/*.md web/public/data/repos.json data/snapshots/*.json.gz