Skip to content

Get survstat status

Get survstat status #9

name: "prepare-plot-data"
on:
workflow_dispatch:
# schedule:
# - cron: "30 11,12,13,14 * * *"
push:
branches:
- main
paths:
- submissions/icosari/sari/KIT-MeanEnsemble/*.csv
jobs:
prepare-plot-data:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.3'
- name: Prepare plot data
run: |
Rscript ./code/generate_plot_data.R
- name: Commit files
env:
AUTH: ${{ secrets.PAT_DW }}
run: |
git config --local user.email "action@github.com"
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 plot data"
- name: Push changes
run: |
git push --quiet --set-upstream origin HEAD:main
echo "pushed to github"