Read production meters (KPIs) #838
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: Read production meters (KPIs) | |
on: | |
schedule: | |
# Run every 2 days at midnight BST (1AM UTC) | |
- cron: "0 1 * * */2" | |
push: | |
# also rerun on changes to this workflow file or the meters | |
paths: | |
- .github/workflows/read-meters-prod.yml | |
- kpis/meters/**.js | |
jobs: | |
read-meters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Read meters | |
uses: everzet/metronome/read-meters-action@master | |
with: | |
commit-token: ${{ secrets.GITHUB_TOKEN }} | |
commit-branch: master | |
readings-env: prod |