Skip to content

Nightly cache refresh #655

Nightly cache refresh

Nightly cache refresh #655

Workflow file for this run

name: Nightly cache refresh
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
refresh-cache:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Build cache
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
scripts/buildcache.sh
scripts/validate.sh code
- name: Commit cache artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if git diff --quiet -- distributions/cache.json; then
echo "Cache already up to date"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add distributions/cache.json
git commit -m "chore: nightly cache refresh"
git push