Skip to content

Commit 90f365d

Browse files
Copilotm-aciek
andauthored
Use env-based version check in PDF dependency step
Agent-Logs-Url: https://github.com/python/python-docs-pl/sessions/d3093b9e-1165-4271-8bf8-718fe79c38bd Co-authored-by: m-aciek <9288014+m-aciek@users.noreply.github.com>
1 parent 3ce2e28 commit 90f365d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/update-lint-and-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ jobs:
130130
- run: sudo apt-get update
131131
- run: |
132132
sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
133-
if ${{ fromJSON(matrix.version) >= 3.14 }}; then
133+
if python -c "import os,sys; sys.exit(0 if tuple(map(int, os.environ['MATRIX_VERSION'].split('.'))) >= (3, 14) else 1)"; then
134134
sudo apt-get install -y librsvg2-bin
135135
fi
136+
env:
137+
MATRIX_VERSION: ${{ matrix.version }}
136138
- run: make
137139
- uses: actions/upload-artifact@v7.0.0
138140
with:

0 commit comments

Comments
 (0)