Skip to content

Commit d1ac1ed

Browse files
Configure Renovate to keep Python at 3.10 for docs workflow
This change adds a packageRule to `renovate.json` to prevent Renovate from updating the Python version used in the `.github/workflows/docs.yml` GitHub Actions workflow. The rule specifically targets the `python-version` input of the `actions/setup-python` step and restricts allowed versions to `<3.11`, effectively pinning it to `3.10` for now.
1 parent cc63108 commit d1ac1ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

renovate.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@
88
"ignorePaths": [".pre-commit-config.yaml", ".kokoro/requirements.txt", "setup.py", ".github/workflows/unittest.yml"],
99
"pip_requirements": {
1010
"fileMatch": ["requirements-test.txt", "samples/[\\S/]*constraints.txt", "samples/[\\S/]*constraints-test.txt"]
11-
}
11+
},
12+
"packageRules": [
13+
{
14+
"matchFileNames": [".github/workflows/docs.yml"],
15+
"matchStrings": ["uses: actions/setup-python@.*\\n with:\\n python-version: '(.*)'"],
16+
"allowedVersions": "<3.11"
17+
}
18+
]
1219
}

0 commit comments

Comments
 (0)