This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
adicionando nuevos sensores #12
Workflow file for this run
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: Actualiza listado de sensores | |
# Controls when the action will run. | |
on: | |
push: | |
paths: | |
- 'data/sensores.json' | |
# schedule: | |
# # Every day, 00:00. | |
# - cron: "0 0 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
actualiza_sensores: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- name: Actualiza Sensores | |
run: | | |
pip install -r requirements.txt | |
python ./data/actualizar_sensores.py | |
env: | |
PURPLEAIR_GROUP_ID: ${{ secrets.PURPLEAIR_GROUP_ID }} | |
PURPLEAIR_READ_KEY: ${{ secrets.PURPLEAIR_READ_KEY }} | |
PURPLEAIR_WRITE_KEY: ${{ secrets.PURPLEAIR_WRITE_KEY }} |