Github repo and issue stats collection #9101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github repo and issue stats collection | |
on: | |
schedule: | |
- cron: "*/30 * * * *" | |
jobs: | |
main: | |
# this action keeps failing in all forks, only run in grafana/tempo. | |
# stats collection action is only useful in main repo. | |
if: github.repository == 'grafana/tempo' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@v3 | |
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}} |