Agregador Mulheres 25 Abril #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Agregador Mulheres 25 Abril | |
on: | |
workflow_dispatch: | |
#schedule: | |
# - cron: '0 4 1 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Convert google sheet to csv | |
run: |- | |
wget -O mulheres25abril/agregador.csv --no-check-certificate "https://docs.google.com/spreadsheets/d/e/2PACX-1vT4bS8PSMGYMjfpfvJxiu8158_gdnWeiO_F4RoLW1H--4LLH6Ie0gnYBD1S28ZZYw/pub?output=csv" | |
- name: CSV to JSON | |
run: ./dasel -r csv -w json < mulheres25abril/agregador.csv > mulheres25abril/agregador.json | |
- name: Minify JSON | |
run: |- | |
jq -r tostring mulheres25abril/agregador.json > mulheres25abril/agregador.min.json | |
- name: Commit and push changes | |
run: |- | |
git diff | |
git config user.name "Automated" | |
git config user.email "---" | |
git diff --quiet || (git add -A && git commit -m "Updated Agregador mulheres 25 abril") | |
git push |