Skip to content

estrai lista dati SiSMG #1548

estrai lista dati SiSMG

estrai lista dati SiSMG #1548

Workflow file for this run

name: estrai lista dati SiSMG
on:
# push:
repository_dispatch:
schedule:
- cron: '15 3 */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 scrape, installa yq
run: |-
mkdir -p ~/bin
cp bin/mlr ~/bin
cp bin/scrape ~/bin
cd ~/bin
chmod +x mlr
chmod +x scrape
sudo pip install yq
- name: scarica i dati
run: |-
export PATH=$PATH:~/bin
cd ./catalogo/SiSMG/script
chmod +x ./SiSMG.sh
./SiSMG.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 "Data e ora aggiornamento: ${timestamp}" || exit 0
git push