From 842e9cd166ba9862b0c8e6f104800f037729bf3c Mon Sep 17 00:00:00 2001 From: Awan Smith <114794418+gunksd@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:36:24 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..de51542 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +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 }} + user: AleafDAO