weblate/.github/workflows/cjk-regexp.yml
renovate[bot] 2700e7e2cf
chore(deps): update actions/checkout action to v7.0.1 (#20782)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-20 17:15:17 +00:00

57 lines
1.7 KiB
YAML
Vendored

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: cjk regexp update
on:
push:
branches:
- renovate/**
- dependabot/**
- main
paths:
- .github/workflows/cjk-regexp.yml
- scripts/generate-cjk-regexp.py
- weblate/trans/util.py
workflow_dispatch:
pull_request:
paths:
- .github/workflows/cjk-regexp.yml
- scripts/generate-cjk-regexp.py
- weblate/trans/util.py
permissions:
contents: read
jobs:
cjk-regexp-update:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
version: 0.11.29
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.14'
- name: Install Python dependencies
run: uv sync --only-group pre-commit
- run: ./scripts/generate-cjk-regexp.py --update
- name: Prepare maintenance patch
uses: ./.github/actions/auto-commit
# Keep this outside the composite action; pre-commit.ci lite detects the
# top-level post step, and composites expose nested post hooks.
# The condition mirrors pre-commit-ci/lite-action's main.mjs user-PR check.
- name: Commit changes (external PR, pre-commit-ci-lite)
if: github.event_name == 'pull_request' && github.event.sender.type == 'User'
uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
with:
msg: 'chore: update CJK regexp data'