fetch-all-fides-stats #814
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: fetch-all-fides-stats | |
concurrency: fetch-all-fides-stats | |
on: | |
schedule: | |
# Run this once per day, towards the end of the day for keeping the most | |
# recent data point most meaningful (hours are interpreted in UTC). | |
- cron: "0 23 * * *" | |
workflow_dispatch: # Allow for running this manually. | |
jobs: | |
run-ghrs-with-matrix: | |
name: fetch-all-fides-stats | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# The repositories to generate reports for. | |
statsRepo: ["ethyca/fides", "ethyca/fideslang"] | |
# Do not cancel&fail all remaining jobs upon first job failure. | |
fail-fast: false | |
# Help avoid commit conflicts. Note(JP): this should not be | |
# necessary anymore, feedback appreciated | |
max-parallel: 1 | |
steps: | |
- name: github-repo-stats | |
uses: jgehrcke/[email protected] | |
with: | |
# Repo to fetch stats for and to generate the report for. | |
repository: ${{ matrix.statsRepo }} | |
# Token that can read the stats repository and that | |
# can push to the data repository. | |
ghtoken: ${{ secrets.ghrs_github_api_token }} | |
# Data branch: Branch to push data to (in the data repo). | |
databranch: main |