github-repo-stats #1899
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-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 16 * * * # every day at 24:00pm UTC+8:00 | |
workflow_dispatch: # Allow for running this manually. | |
jobs: | |
apitable: | |
name: apitable-stats | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: run-ghrs | |
# Use latest release. | |
uses: jgehrcke/github-repo-stats@RELEASE | |
with: | |
ghtoken: ${{ secrets.ghrs_github_api_token }} | |
repository: apitable/apitable |