-
Notifications
You must be signed in to change notification settings - Fork 55
37 lines (35 loc) · 1.07 KB
/
INFN_iss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: scarica dati ISS da INFN
on:
# push:
repository_dispatch:
schedule:
- cron: '5 3 * * *'
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: installa chrome e jq
run: |-
sudo apt-get install -y jq
sudo apt-get install -y libappindicator1 fonts-liberation
sudo apt-get -f install
wget http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
- name: esegui script
run: |-
cd ./webservices/INFN_iss
chmod +x ./INFN_iss.sh
./INFN_iss.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 "scarica dati ISS da INFN: ${timestamp}" || exit 0
git push