Parse #2
This file contains hidden or 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
| name: Parse | |
| on: | |
| workflow_dispatch: {} | |
| schedule: | |
| # every day at midnight | |
| - cron: "0 0 * * *" | |
| jobs: | |
| parse: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: jdx/mise-action@v2 | |
| - run: uv run --group parse playwright install --with-deps chromium | |
| - run: mise run parse | |
| - id: cpr | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: parse-${{ github.run_number }} | |
| title: "Update screenings" | |
| body: "Automated update of screenings data" | |
| - if: steps.cpr.outputs.pull-request-number | |
| run: gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --rebase | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |