This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
Daily Check Maps #227
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: Daily Check Maps | |
on: | |
schedule: | |
- cron: "0 15,20 * * *" | |
workflow_dispatch: | |
branches: [main] | |
jobs: | |
download: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_MAPA }} | |
SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} | |
PASSWORD_EMAIL: ${{ secrets.PASSWORD_EMAIL }} | |
RECEIVE_EMAIL: ${{ secrets.RECEIVE_EMAIL }} | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run the script | |
run: python setup.py | |
- name: Configure o Git | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "mayaradaher" | |
- name: Adicionar arquivo gerado ao Git | |
run: | | |
git add data/data_previous.xlsx | |
- name: Checar status | |
run: | | |
git status | |
- name: Fazer commit das alterações | |
run: | | |
git commit -m "Adicionando arquivo gerado" || echo "Nothing to commit" | |
- name: Push para o repositório | |
run: | | |
git push |