get-survstat-status #1303
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: "get-survstat-status" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "15 7,8,12,13,17,18,22,23 * * *" | |
jobs: | |
get-latest-data: | |
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 survstat status | |
run: | | |
cd ./code | |
python ./get_survstat_status.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 "Get survstat status" | |
- name: Push changes | |
run: | | |
git push --quiet --set-upstream origin HEAD:main | |
echo "pushed to github" |