Skip to content

aggiornamento giornaliero su archive #2095

aggiornamento giornaliero su archive

aggiornamento giornaliero su archive #2095

Workflow file for this run

name: aggiornamento giornaliero su archive
on:
# push:
repository_dispatch:
schedule:
- cron: '00 4 */1 * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Utilizza l'action github checkout@v2, per automatizzare il check-out
uses: actions/checkout@v2
- name: installa miller e yq
run: |-
mkdir -p ~/bin
cp bin/mlr ~/bin
cd ~/bin
chmod +x mlr
sudo pip install yq
- name: lancia aggiornamento
env:
SUPER_SECRET: ${{ secrets.WEBARCHIVE }}
run: |-
export PATH=$PATH:~/bin
chmod +x ./script/webarchive.sh
./script/webarchive.sh
- name: Committa e pusha se ci sono variazioni nei dati
run: |-
git config user.name "automatico"
git config user.email "actions@users.noreply.github.com"
git add -A
timestamp=$(date --iso-8601=seconds)
git commit -m "Data e ora aggiornamento: ${timestamp}" || exit 0
git push