aggiorna dati terapia intensiva #1343
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: aggiorna dati terapia intensiva | |
on: | |
# push: | |
repository_dispatch: | |
schedule: | |
- cron: '10 16 */1 * *' | |
workflow_dispatch: | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Utilizza l'action github checkout@v2, per automatizzare il check-out | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: crea cartella utente bin, copia dentro l'eseguibile di miller e installa moreutils | |
run: |- | |
sudo apt-get install miller | |
sudo apt-get install dos2unix | |
- name: scarica i dati | |
run: |- | |
cd ./elaborazioni/dpc_covid19/terapiaIntensiva/ | |
chmod +x ./terapiaIntensiva.sh | |
./terapiaIntensiva.sh | |
- name: Committa e pusha se ci sono variazioni nei dati | |
run: |- | |
git config user.name "automatico" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date --iso-8601=seconds) | |
git commit -m "Terapia intensiva: ${timestamp}" || exit 0 | |
git push | |