-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.12 KB
/
Copy pathparse.yml
File metadata and controls
39 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Parse
on:
workflow_dispatch: {}
schedule:
# every day at midnight
- cron: "0 0 * * *"
permissions:
contents: write
pull-requests: write
jobs:
parse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
lfs: true
- run: git lfs install
- uses: jdx/mise-action@v2
- run: uv run --group parse playwright install --with-deps chromium
- run: mise run parse
- name: Create PR with changes
env:
GH_TOKEN: ${{ secrets.PAT }}
run: |
BRANCH="parse-${{ github.run_number }}"
if git diff --quiet; then
echo "No changes to commit"
exit 0
fi
git checkout -b "$BRANCH"
git add -A
git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" commit -m "Update screenings"
git push origin "$BRANCH"
PR_URL=$(gh pr create --title "Update screenings" --body "Automated update of screenings data" --base master)
gh pr merge "$PR_URL" --rebase