mirror of
https://github.com/WeblateOrg/weblate.git
synced 2026-07-27 22:46:38 +08:00
These seem to have shorter queue, so spread the load there for faster execution of lock file updates. Also consolidate the CI with pre-commit shared setup.
52 lines
1.6 KiB
YAML
Vendored
52 lines
1.6 KiB
YAML
Vendored
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
name: licenses update
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- renovate/**
|
|
- dependabot/**
|
|
- main
|
|
paths:
|
|
- .github/workflows/licenses-update.yml
|
|
- scripts/generate-license-data.py
|
|
- scripts/spdx-license-list
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
licenses-update:
|
|
runs-on: ubuntu-24.04-arm
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
if: github.event_name != 'pull_request' && github.repository_owner == 'WeblateOrg'
|
|
with:
|
|
token: ${{ secrets.WEBLATE_CI_TOKEN }} # zizmor: ignore[secrets-outside-env]
|
|
persist-credentials: true
|
|
submodules: true
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
if: github.event_name != 'pull_request' && github.repository_owner != 'WeblateOrg'
|
|
with:
|
|
persist-credentials: true
|
|
submodules: true
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
if: github.event_name == 'pull_request'
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
- uses: ./.github/actions/pre-commit-setup
|
|
- run: ./scripts/generate-license-data.py
|
|
|
|
- name: Commit or create pull request (pre-commit-ci-lite)
|
|
uses: ./.github/actions/auto-commit
|
|
with:
|
|
message: 'utils: Update SPDX license data'
|
|
pr-branch: create-pull-request/licenses-update
|
|
pr-labels: |
|
|
dependencies
|
|
github-token: ${{ secrets.WEBLATE_CI_TOKEN }} # zizmor: ignore[secrets-outside-env]
|