1 parent 0d7a047 commit 8237f07Copy full SHA for 8237f07
1 file changed
.github/workflows/parse.yml
@@ -0,0 +1,29 @@
1
+name: Parse
2
+
3
+on:
4
+ workflow_dispatch: {}
5
+ schedule:
6
+ # every day at midnight
7
+ - cron: "0 0 * * *"
8
9
+jobs:
10
+ parse:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ token: ${{ secrets.GITHUB_TOKEN }}
16
+ - uses: jdx/mise-action@v2
17
+ - run: uv run playwright install --with-deps chromium
18
+ - run: mise run parse
19
+ - id: cpr
20
+ uses: peter-evans/create-pull-request@v5
21
22
23
+ branch: parse-${{ github.run_number }}
24
+ title: "Update screenings"
25
+ body: "Automated update of screenings data"
26
+ - if: steps.cpr.outputs.pull-request-number
27
+ run: gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --rebase
28
+ env:
29
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments