From ec215e18bc66c9f3249716139f3ad6ceb4812a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 9 Oct 2020 15:20:04 +0200 Subject: [PATCH] Automation: Adds github action to collect issue metrics (#28139) --- .github/workflows/metrics-collector.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/metrics-collector.yml diff --git a/.github/workflows/metrics-collector.yml b/.github/workflows/metrics-collector.yml new file mode 100644 index 00000000000..40e65d63394 --- /dev/null +++ b/.github/workflows/metrics-collector.yml @@ -0,0 +1,22 @@ +name: Collect metrics when issue is closed +on: + issues: + types: [opened, closed] + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: Checkout Actions + uses: actions/checkout@v2 + with: + repository: "grafana/grafana-github-actions" + path: ./actions + ref: main + - name: Install Actions + run: npm install --production --prefix ./actions + - name: Run metrics collector + uses: ./actions/metrics-collector + with: + metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}} + token: ${{secrets.GH_BOT_ACCESS_TOKEN}}