Daily Fetch of Data #4214
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: Daily Fetch of Data | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Adding Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
working-directory: scraper | |
run: npm install | |
- name: Fetch Data | |
working-directory: scraper | |
run: npm start daft update sligo | |
- name: Process Data | |
working-directory: scraper | |
run: npm start daft process sligo | |
- name: View Data | |
working-directory: scraper | |
run: npm start daft view sligo | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./ |