Skip to content

fetch-all-fides-stats #790

fetch-all-fides-stats

fetch-all-fides-stats #790

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