From ca7f04ce6a6618e894f087c68eb92476317d812d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 24 Nov 2023 20:39:41 +0000 Subject: [PATCH] chore(meta): tweak update-meta workflow Run once a day only, and pass in cache flag to keep download totals accurate over time. --- .github/workflows/update-metadata.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-metadata.yml b/.github/workflows/update-metadata.yml index 2568f85..107617f 100644 --- a/.github/workflows/update-metadata.yml +++ b/.github/workflows/update-metadata.yml @@ -3,7 +3,7 @@ name: Update Metadata concurrency: jimeh/emacs-builds/update-metadata on: schedule: - - cron: "0 0,12 * * *" + - cron: "0 0 * * *" workflow_dispatch: jobs: @@ -19,7 +19,9 @@ jobs: go-version: "1.21" - name: update total downloads shield JSON run: >- - go run . badges downloads -o total-downloads/shield.json + go run . badges downloads + --output total-downloads/shield.json + --cache total-downloads/.cache.json env: GITHUB_TOKEN: ${{ github.token }} - name: commit and push changes to meta branch