Skip to content

Commit

Permalink
Add github action for automatic scrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cawabunga committed Sep 20, 2024
1 parent 1e7e3b8 commit 4b499ca
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/scrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Scrap Prices

on:
workflow_dispatch:
schedule:
- cron: "0 */3 * * *" # every 3 hour

jobs:
scrap:
timeout-minutes: 5

strategy:
matrix:
os: [ubuntu-latest]
go-version: [1.23.1]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'

- run: go run .

- uses: EndBug/add-and-commit@v9
with:
add: 'docs'
message: 'Update files'

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit 4b499ca

Please sign in to comment.