From 4af74a2e3472c3773a66a1465cae1e550010a214 Mon Sep 17 00:00:00 2001 From: Emil Kriukov <77118598+mcrewcow@users.noreply.github.com> Date: Sun, 23 Jun 2024 23:41:16 -0400 Subject: [PATCH] Update metrics-embed.yml --- .github/workflows/metrics-embed.yml | 37 +++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/.github/workflows/metrics-embed.yml b/.github/workflows/metrics-embed.yml index 8ffbf60..6e7f98c 100644 --- a/.github/workflows/metrics-embed.yml +++ b/.github/workflows/metrics-embed.yml @@ -1,11 +1,28 @@ name: Metrics -uses: lowlighter/metrics@latest -with: - template: repository - filename: metrics.repository.svg - token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }} - user: mcrewcow - repo: RGC_Dnmt3a_pONC2d_paper - plugin_lines: yes - plugin_followup: yes - plugin_projects: yes + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + metrics: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Generate Metrics + uses: lowlighter/metrics@latest + with: + template: repository + filename: metrics.repository.svg + token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }} + user: mcrewcow + repo: RGC_Dnmt3a_pONC2d_paper + plugin_lines: yes + plugin_followup: yes + plugin_projects: yes