Skip to content

get-reporting-triangles #5

get-reporting-triangles

get-reporting-triangles #5

name: "get-reporting-triangles"
on:
workflow_dispatch:
schedule:
- cron: "0 9,14,17 * * 1,4"
jobs:
get-reporting-triangles:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install requirements
run: |
pip install pandas
- name: Get reporting triangles
run: |
cd ./code
python ./get_reporting_triangles.py
- name: Commit files
env:
AUTH: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git remote rm origin
git remote add origin https://${AUTH}@github.com/KITmetricslab/RESPINOW-Hub.git > /dev/null 2>&1
git pull origin main
git add --all
git commit --allow-empty -m "Update reporting triangles"
- name: Push changes
run: |
git push --quiet --set-upstream origin HEAD:main
echo "pushed to github"