2021-10-24 16:20:29 +00:00
|
|
|
name: Validação automática
|
2021-10-24 15:49:13 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2024-10-19 15:35:38 +00:00
|
|
|
# Every day at 15:40 UTC
|
|
|
|
- cron: '40 15 * * *'
|
2021-10-24 15:49:13 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
run-validation-scripts:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
2024-10-19 15:35:38 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-10-24 15:49:13 +00:00
|
|
|
|
|
|
|
- name: Run validation scripts
|
|
|
|
run: |
|
|
|
|
sudo apt install curl git html-xml-utils wget -y
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/01-parlamento.sh"
|
2021-10-24 16:20:43 +00:00
|
|
|
"${GITHUB_WORKSPACE}/scripts/02-economia.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/07-lisboa-pdf.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/09-financas.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/19-igcp.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/20-viva.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/25-eleicoes.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/26-snirh.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/29-inpi.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/35-turismo.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/36-norte2020.sh"
|
|
|
|
"${GITHUB_WORKSPACE}/scripts/40-sef.sh"
|
2021-11-07 00:43:46 +00:00
|
|
|
"${GITHUB_WORKSPACE}/scripts/50-bud.sh"
|
2022-04-04 10:12:25 +00:00
|
|
|
"${GITHUB_WORKSPACE}/scripts/51-dgeg.sh"
|
2024-10-19 06:46:54 +00:00
|
|
|
"${GITHUB_WORKSPACE}/scripts/53-sg-pcm-gov.sh"
|
2021-10-24 15:49:13 +00:00
|
|
|
|
|
|
|
- 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
|