mirror of
https://github.com/WeblateOrg/weblate.git
synced 2026-07-27 17:03:37 +08:00
45 lines
1.1 KiB
YAML
Vendored
45 lines
1.1 KiB
YAML
Vendored
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
name: jsonschema update
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- renovate/**
|
|
- dependabot/**
|
|
- main
|
|
paths:
|
|
- .github/workflows/schema-update.yml
|
|
- pyproject.toml
|
|
- docs/Makefile
|
|
- scripts/get-schemas-dir.py
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
jsonschema-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 schemas --only-group pre-commit
|
|
- run: make -C docs update-schemas
|
|
|
|
- name: Prepare maintenance patch
|
|
uses: ./.github/actions/auto-commit
|