Skip to content

Commit 8237f07

Browse files
committed
setup daily job
1 parent 0d7a047 commit 8237f07

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/parse.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
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

Comments
 (0)