Skip to content

Commit e5a97fb

Browse files
committed
chore(ci): fix some template injections too
Signed-off-by: William Woodruff <[email protected]>
1 parent db0ef80 commit e5a97fb

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/test-translations.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,16 @@ jobs:
7272
uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1
7373

7474
- name: Build translated docs in ${{ matrix.language }}
75-
run: nox -s build -- -q -D language=${{ matrix.language }}
75+
run: nox -s build -- -q -D language=${LANGUAGE}
76+
env:
77+
LANGUAGE: ${{ matrix.language }}
7678

7779
- name: Set Sphinx Lint problem matcher
7880
if: always()
7981
run: echo '::add-matcher::.github/sphinx_lint_matcher.json'
8082

8183
- name: Lint translation file
8284
if: always()
83-
run: sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po
85+
run: sphinx-lint locales/${LANGUAGE}/LC_MESSAGES/messages.po
86+
env:
87+
LANGUAGE: ${{ matrix.language }}

.github/workflows/translation.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.repository_owner == 'pypa'
1919

20+
permissions:
21+
contents: write # to push to I18N_BRANCH
22+
2023
steps:
2124
- name: Grab the repo src
2225
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -49,7 +52,9 @@ jobs:
4952
run: |
5053
sh -x
5154
52-
git merge '${{ github.event.repository.default_branch }}'
55+
git merge "${DEFAULT_BRANCH}"
56+
env:
57+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
5358
5459
- name: Set up Python
5560
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0

0 commit comments

Comments
 (0)