Update Weekly GitHub Stats #19
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: Update Weekly GitHub Stats | |
on: | |
workflow_dispatch: | |
# Run every 2 weeks on Monday at 00:00 UTC | |
schedule: | |
- cron: '0 0 * * 1/2' | |
jobs: | |
update-stats: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: stats | |
- name: Update Stats File | |
run: python /var/github_traffic.py | |
- name: Commit and Push Changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
message: "Update weekly GitHub stats" | |
add: "github_traffic.csv" | |
branch: stats | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |