Repository navigation
57 lines (50 loc) · 1.77 KB
/
Copy pathits-rules-update.yml
File metadata and controls
57 lines (50 loc) · 1.77 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: ITS rules update
on:
push:
branches:
- renovate/**
- dependabot/**
- main
paths:
- .github/workflows/its-rules-update.yml
- scripts/update-gettext-rules.py
- weblate/addons/extractors/gettext/**
workflow_dispatch:
pull_request:
paths:
- .github/workflows/its-rules-update.yml
- scripts/update-gettext-rules.py
- weblate/addons/extractors/gettext/**
permissions:
contents: read
jobs:
its-rules-update:
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
enable-cache: false
version: 0.13.10
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.14'
- name: Install Python dependencies
run: uv sync --only-group scripts --only-group pre-commit
- run: uv run --frozen --only-group scripts scripts/update-gettext-rules.py
- 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@062bca0919bc9d6e66755cc05074b70c77e111fc # v1.2.0
with:
msg: 'chore: update gettext ITS rules'