Compare commits

...

2 commits

Author SHA1 Message Date
renovate[bot]
d06cab300d
chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.14.2 (#2004)
Some checks are pending
mypy / mypy (push) Waiting to run
Pre-commit check / pre-commit (push) Waiting to run
Distribution / Build packages (push) Waiting to run
Distribution / Publish release to PyPI (push) Blocked by required conditions
Distribution / Create release on GitHub (push) Blocked by required conditions
Languages / lint (push) Waiting to run
Update generated files / submodule-update (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 15:04:34 +00:00
Michal Čihař
ffb2f07b48 feat: improve updating branches 2025-09-29 11:54:52 +02:00
2 changed files with 16 additions and 5 deletions

View file

@ -20,6 +20,13 @@ jobs:

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
if: github.event_name != 'pull_request'
with:
token: ${{ secrets.WEBLATE_CI_TOKEN }}
submodules: true
persist-credentials: true
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
if: github.event_name == 'pull_request'
with:
submodules: true
persist-credentials: false
@ -30,9 +37,6 @@ jobs:
with:
python-version: '3.13'
- uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
with:
enable-cache: true
cache-dependency-glob: ''
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/pre-commit
@ -54,10 +58,17 @@ jobs:
commit_message: 'chore: update generated files'

- name: Create Pull Request
if: github.ref == 'refs/heads/main'
id: cpr
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.ref_name == 'main'
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
branch: create-pull-request/submodule-update
title: 'chore: update generated files'
commit-message: 'chore: update generated files'
token: ${{ secrets.WEBLATE_CI_TOKEN }}
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation && steps.cpr.outputs.pull-request-operation != 'none'
run: gh pr merge --rebase --auto "$PR_NUMBER"
env:
GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }}
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}

View file

@ -85,7 +85,7 @@ repos:
- id: shfmt
args: [--write]
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.13.0
rev: v1.14.2
hooks:
- id: zizmor
- repo: https://github.com/gitleaks/gitleaks