Update pre-commit hooks (#3137) #1003
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: Update snapshots | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| workflow_dispatch: | |
| jobs: | |
| update-snapshots: | |
| name: Update snapshots | |
| if: github.repository == 'vacanza/holidays' | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a | |
| with: | |
| python-version: '3.14' | |
| version: '0.9.16' | |
| - name: Install Python | |
| run: uv python install "$UV_PYTHON" | |
| - name: Install dependencies | |
| run: uv sync --frozen --no-dev --group build | |
| - name: Generate snapshots | |
| run: make snapshot | |
| - uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 | |
| with: | |
| base: dev | |
| body: Automatically generated snapshots update. | |
| branch: update-snapshots | |
| commit-message: 'Update snapshots [skip ci]' | |
| committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
| delete-branch: true | |
| title: 'chore: Update snapshots' | |
| token: ${{ github.token }} |