Fetch and store #71487
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
on: | |
# workflow_dispatch: | |
# inputs: | |
# url: | |
# description: 'Publication URL' | |
# required: true | |
# default: 'https://www.health.gov.au/resources/publications/covid-19-vaccine-rollout-update-28-april-2021' | |
schedule: | |
- cron: '*/5 1,2,3,4 * * *' | |
- cron: '12,42 0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * *' | |
name: Fetch and store | |
jobs: | |
fetch: | |
name: Fetch and store | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
ref: master | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '12' | |
- name: Scrape | |
run: | | |
yarn | |
node fetch-and-store.js | |
node generate-csv.js | |
node fetch-and-store-geo.js | |
node generate-csv-geo.js | |
node legacy-sa4.js | |
- name: Push data | |
run: | | |
git config user.name jxeeno | |
git config user.email [email protected] | |
git add . || exit 0 | |
git commit -m "auto(): update DOH data" || exit 0 | |
git push || exit 0 |