Query all Chainlink upkeeps #119
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: Query all Chainlink upkeeps | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
query_upkeeps: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: "upkeeps" | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: Query Dune | |
env: | |
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY }} | |
run: | | |
cd tools/python | |
pip install -r requirements.txt | |
python query_upkeeps.py | |
- name: Commit CSV file | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: "upkeeps" | |
file_pattern: "upkeeps.csv" | |
commit_message: "ci: dump csv file with all queried upkeeps" |