From f4b73db20af2cbd50dfc689fd4e90f4d40ccb4ed Mon Sep 17 00:00:00 2001 From: Preston Date: Mon, 7 Oct 2024 13:22:15 -0400 Subject: [PATCH] Create metrics.yml --- .github/workflows/metrics.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/metrics.yml diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml new file mode 100644 index 0000000..49fa590 --- /dev/null +++ b/.github/workflows/metrics.yml @@ -0,0 +1,19 @@ +name: Metrics +on: + # Schedule daily updates + schedule: [{cron: "0 0 * * *"}] + # (optional) Run workflow manually + workflow_dispatch: + # (optional) Run workflow when pushing on master/main + push: {branches: ["master", "main"]} +jobs: + github-metrics: + runs-on: ubuntu-latest + environment: + name: production + permissions: + contents: write + steps: + - uses: lowlighter/metrics@latest + with: + token: ${{ secrets.METRICS_TOKEN }}