Data Report Generator #41
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
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Data Report Generator | |
on: | |
push: | |
schedule: | |
- cron: '3 */4 * * *' # Run once an hour | |
workflow_dispatch: # Allow manual trigger | |
jobs: | |
generate-report: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate Report | |
run: | | |
mkdir -p docs | |
python3 -m pip install aiohttp | |
python3 .github/faithful-data-report.py > docs/CAR-REPORT.md | |
# Commit changed files back to the repository | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
message: Old Faithful CAR data report update | |
new_branch: 'gha-report' | |
add: 'docs/*.md' | |
author_name: github-actions[bot] | |
author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
fetch: origin gha-report | |
push: origin gha-report --force | |
pull: ' ' | |