Consulta de posiciones de embarcaciones #530
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: Consulta de posiciones de embarcaciones | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
# Ejecutar cada 20 minutos | |
schedule: | |
#- cron: '*/20 * * * *' | |
#- cron: '0 * * * *' # 1 hora | |
- cron: '0 */7 * * *' # 7 horas | |
# # Ejecutar en push events | |
# push: | |
# branches: [ main ] | |
# # Ejecutar en pull request events | |
# pull_request: | |
# types: [opened, synchronize] | |
jobs: | |
ejecutar-script: | |
runs-on: ubuntu-latest | |
steps: | |
# - name: Checkout del código | |
# uses: actions/checkout@v2 | |
- name: Configurar Python | |
uses: actions/checkout@v4 | |
with: | |
#python-version: '3.x' | |
python-version: '3.11' | |
- name: Instalar dependencias | |
run: | | |
python -m pip install setuptools | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Ejecutar script Python | |
run: | | |
#python Download_data.py | |
python 01_Request_data_Prince_Rupert.py | |
- name: Commit de los cambios en el repositorio | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "francorvalan" | |
# git add . | |
# git commit -m "sitio web generado con último valor estimado de turbidez" | |
# git push origin main | |
- name: autocomit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Changed files. | |
push_options: '--force' | |
# - name: Push changes | |
# uses: ad-m/github-push-action@master | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# branch: ${{ github.ref }} | |
# - uses: fastify/[email protected] | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} |