Octagon Scraper #110
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: Octagon Scraper | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 4 * * 4' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
name: Run complete scraper | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- run: | | |
pnpm run scrape | |
git config user.name octagon-api | |
git config user.email weeklydeploy@octagon-api.com | |
git add -A | |
git commit -am "[BOT] Update Octagon API database" | |
git push origin ${{ github.ref_name }} | |
- run: echo "🎉 Task finished!" |