Skip to content

Commit 9cd424e

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent 3e27984 commit 9cd424e

File tree

9 files changed

+39
-7
lines changed

9 files changed

+39
-7
lines changed

.github/renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@
137137
"matchStrings": [
138138
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s+version: (?<currentValue>.*)\\s"
139139
]
140+
},
141+
{
142+
"customType": "regex",
143+
"fileMatch": [
144+
"^Dockerfile$"
145+
],
146+
"matchStrings": [
147+
"#\\s*renovate:\\s*?(release=(?<release>.*?))?\\s*depName=(?<depName>.*?)?\\sENV .*?_VERSION=\"(?<currentValue>.*)\""
148+
],
149+
"registryUrlTemplate": "https://deb.debian.org/debian?{{#if release }}release={{release}}{{else}}suite=stable{{/if}}&components=main,contrib,non-free&binaryArch=amd64",
150+
"datasourceTemplate": "deb"
140151
}
141152
]
142153
}

.github/workflows/closing.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
issues:
1010
types: [closed]
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.issue.id }}
14+
cancel-in-progress: true
15+
1216
permissions:
1317
contents: read
1418

@@ -24,7 +28,11 @@ jobs:
2428
if: |
2529
github.actor != 'renovate[bot]' &&
2630
github.event.issue.state_reason == 'completed' &&
27-
(contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'wontfix')) || join(github.event.issue.labels.*.name) == ''
31+
(
32+
contains(github.event.issue.labels.*.name, 'question') &&
33+
! contains(github.event.issue.labels.*.name, 'duplicate') &&
34+
! contains(github.event.issue.labels.*.name, 'wontfix')
35+
) || join(github.event.issue.labels.*.name) == ''
2836
with:
2937
token: ${{ secrets.GITHUB_TOKEN }}
3038
issue-number: ${{ github.event.issue.number }}

.github/workflows/container-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ jobs:
5757
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
5858
- name: Build the Docker image
5959
run: .github/bin/docker-build
60+
permissions:
61+
contents: read

.github/workflows/container-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,5 @@ jobs:
326326
run: .github/bin/get-buildx-args publish-${{ inputs.variant }}
327327
- name: Publish the Docker images
328328
run: .github/bin/docker-build publish-${{ inputs.variant }}
329+
permissions:
330+
contents: read

.github/workflows/container-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ jobs:
109109
- name: Shutdown service
110110
working-directory: docker-compose
111111
run: ./test-stop
112+
permissions:
113+
contents: read

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ name: Pre-commit check
88
on:
99
push:
1010
branches-ignore:
11-
- deepsource-fix-**
1211
- renovate/**
1312
- weblate
1413
pull_request:
@@ -35,13 +34,13 @@ jobs:
3534
id: detect
3635
run: |
3736
if test -f requirements-lint.txt ; then
38-
echo "method=requirements" >> $GITHUB_OUTPUT
37+
echo "method=requirements" >> "$GITHUB_OUTPUT"
3938
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
40-
echo "method=pep735" >> $GITHUB_OUTPUT
39+
echo "method=pep735" >> "$GITHUB_OUTPUT"
4140
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
42-
echo "method=pyproject" >> $GITHUB_OUTPUT
41+
echo "method=pyproject" >> "$GITHUB_OUTPUT"
4342
else
44-
echo "method=uvx" >> $GITHUB_OUTPUT
43+
echo "method=uvx" >> "$GITHUB_OUTPUT"
4544
fi
4645
- name: pre-commit (PEP 735)
4746
if: steps.detect.outputs.method == 'pep735'
@@ -60,7 +59,7 @@ jobs:
6059
run: uv pip install --system -r requirements-lint.txt
6160
- name: Install dependencies
6261
if: steps.detect.outputs.method == 'pyproject'
63-
run: uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
62+
run: uv pip install --system "$(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)"
6463
- name: pre-commit (installed)
6564
if: steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
6665
run: pre-commit run --all

.github/workflows/readme-sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ jobs:
2424
password: ${{ secrets.DOCKERHUB_PASSWORD }}
2525
repository: weblate/weblate
2626
short-description: ${{ github.event.repository.description }}
27+
permissions:
28+
contents: read

.github/workflows/semgrep.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- run: semgrep ci
25+
permissions:
26+
contents: read

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@ repos:
4747
hooks:
4848
- id: shfmt
4949

50+
- repo: https://github.com/rhysd/actionlint
51+
rev: v1.7.7
52+
hooks:
53+
- id: actionlint
5054
ci:
5155
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)