Skip to content

Commit a8121f6

Browse files
authored
feat: use python-version-file (#260)
* feat: use python-version-file * Use mp/python_version_file * Revert * Change to flatmap
1 parent 8ef6a02 commit a8121f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/actions/build-node-python/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ runs:
129129
uses: actions/setup-python@v6
130130
if: inputs.enable_python == 'true'
131131
with:
132-
python-version: ${{ inputs.python_version || '3.10' }}
132+
python-version-file: pyproject.toml
133+
python-version: ${{ inputs.python_version || null }}
133134
# cache: ${{ inputs.enable_python_cache == 'true' && 'pip' || null }} Disable cache as uv is probably faster anyways: https://github.com/actions/setup-python/issues/822
134135
- name: Install additional python requirements
135136
if: inputs.enable_python == 'true'

.github/workflows/build-docker-artifacts-trigger-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ jobs:
7777
7878
const imageTagAfterRetag = "${{ github.ref }}".replace('refs/heads/', '').replace('refs/tags/', '').replace(/[^a-zA-Z0-9._-]/g, '-');
7979
80-
const result = customers.map((c) => ({
80+
const result = customers.flatMap((c) => config.push?.[c] ? [{
8181
repository: process.env.REPOSITORY,
8282
customer: c,
8383
customer_json: JSON.stringify(config.push[c]),
8484
image_tag: imageTagAfterRetag,
85-
}));
85+
}] : []);
8686
console.log(result);
8787
return result;
8888
env:

0 commit comments

Comments
 (0)