-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a8bf0c
commit f600a8c
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Based on https://github.com/simonw/ca-fires-history file .github/workflows/scrape.yml | ||
|
||
name: Scrape latest data | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 * * * *' | ||
|
||
jobs: | ||
scheduled: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out this repo | ||
uses: actions/checkout@v3 | ||
- name: Fetch latest uwhnews.more-sport.com data | ||
run: |- | ||
curl 'https://uwhnews.more-sport.com/where-to-flick/' > uwhnews.more-sport.com.where-to-flick.html | ||
- name: Fetch latest belgiumuwh.be data | ||
run: |- | ||
curl 'https://www.belgiumuwh.be/clubs-in-belgium/' > belgiumuwh.be.clubs-in-belgium.html | ||
- name: Commit and push if it changed | ||
run: |- | ||
git config user.name "Automated" | ||
git config user.email "actions@users.noreply.github.com" | ||
git add -A | ||
timestamp=$(date -u +'%FT%TZ') | ||
git commit -m "Latest data: ${timestamp}" || exit 0 | ||
git push |