NWIS Sites Data Update #154
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: NWIS Sites Data Update | |
on: | |
# push: | |
# branches: | |
# - main | |
schedule: | |
- cron: "0 0 * * 0" # runs at 00:00 UTC, once weekly | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.x" | |
- name: Install npm packages | |
run: npm install dateformat axios fast-xml-parser | |
- name: Run NWIS Site data update | |
run: npm run update-nwis | |
- name: Commit data | |
run: | | |
git config --global user.name 'Sam Learner' | |
git config --global user.email '[email protected]' | |
git add public/data/active_nwis_sites.json | |
git commit -m "NWIS Site data update" | |
git push |