Skip to content

Commit

Permalink
add github action to check for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joergreichert committed Dec 2, 2023
1 parent c82b57d commit b66ccd5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check_for_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Node.js CI

on:
schedule:
- cron: "00 12 * * *"

jobs:
checkForChanges:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Scrape markets
run: |
cd ./scraper
npm install
npm run leipzigde
git diff markets_leipzig_de.json | echo >> git_diff.txt
[ -s git_diff.txt ] && exit 1
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: weihnachts_maerkte_leipzigde.json
path: markets_leipzig_de.json
retention-days: 1

0 comments on commit b66ccd5

Please sign in to comment.