mirror of
https://github.com/marado/RNID.git
synced 2025-03-23 13:27:56 +00:00

We were actually running wget and letting the user see the output... and get its error code, which is quite fine in a manual run, but messes with the automatic running of these scripts. Now, we still do wget and validate its error code, but instead the script then does its business as usual (and hopefully this fixes our cron'ed GA). This patch also changes the time at which the scheduled cronjob runs, just because it is still once a day, which is what we want, and will give us still a run today (so we can have it run with this change sooner rather than later).
63 lines
2.4 KiB
YAML
63 lines
2.4 KiB
YAML
name: Validação automática
|
|
|
|
on:
|
|
schedule:
|
|
# Every day at 11:00 (AM) UTC
|
|
- cron: '0 11 * * *'
|
|
|
|
jobs:
|
|
run-validation-scripts:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run validation scripts
|
|
run: |
|
|
sudo apt install curl git html-xml-utils wget -y
|
|
"${GITHUB_WORKSPACE}/scripts/01-parlamento.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/02-economia.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/03-iefp.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/05-governo.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/07-lisboa-pdf.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/09-financas.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/11-ansr.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/12-autentic.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/14-mai.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/15-rcaap.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/16-saude.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/18-act.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/19-igcp.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/20-viva.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/21-prevpap.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/22-azulejo.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/23-matriznet.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/24-matrizpix.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/25-eleicoes.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/26-snirh.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/27-cnpd.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/28-terratreme.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/29-inpi.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/32-dgt.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/34-inventarios.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/35-turismo.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/36-norte2020.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/38-siac.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/40-sef.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/46-accessmonitor.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/48-insa.sh"
|
|
"${GITHUB_WORKSPACE}/scripts/49-imt.sh"
|
|
|
|
- name: Commit file(s)
|
|
run: |
|
|
git config --local user.email "<>"
|
|
git config --local user.name "GitHub Actions"
|
|
git add ./README.md
|
|
git commit -m "Update de $(date +"%Y-%m-%d")"
|
|
|
|
- name: Push changes # push the output folder to your repo
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
force: true
|