Skip to content

Commit 932fa28

Browse files
committed
reverted dev-mode changes to GHA workflows
1 parent 5de40e1 commit 932fa28

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.github/actions/features_parse/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ outputs:
1414
runs:
1515
using: composite
1616
steps:
17-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@3054-move-github-workflows-py-to-python-gardenlinux-lib
17+
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@0.10.0
1818
- id: result
1919
shell: bash
2020
run: |

.github/actions/flavors_parse/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ outputs:
1919
runs:
2020
using: composite
2121
steps:
22-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@3054-move-github-workflows-py-to-python-gardenlinux-lib
22+
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@0.10.0
2323
with:
2424
version: ${{ inputs.version }}
2525

.github/actions/setup/action.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,20 @@ outputs:
2323
runs:
2424
using: composite
2525
steps:
26-
# - name: Evaluate Python environment
27-
# if: ${{ !env.ACT }}
28-
# id: env-check
29-
# shell: bash
30-
# run: |
31-
# # Determine cache type based on available lockfile
32-
# if [ -f poetry.lock ]; then
33-
# echo "package_tool=poetry" >> $GITHUB_OUTPUT
34-
# elif [ -f requirements.txt ]; then
35-
# echo "package_tool=pip" >> $GITHUB_OUTPUT
36-
# else
37-
# # no lockfile present: create one and use pip caching
38-
# echo "gardenlinux @ git+https://github.com/gardenlinux/python-gardenlinux-lib.git@${{ inputs.version }}" | tee -a requirements.txt
39-
# echo "package_tool=pip" >> $GITHUB_OUTPUT
40-
# fi
26+
- name: Evaluate Python environment
27+
id: env-check
28+
shell: bash
29+
run: |
30+
# Determine cache type based on available lockfile
31+
if [ -f poetry.lock ]; then
32+
echo "package_tool=poetry" >> $GITHUB_OUTPUT
33+
elif [ -f requirements.txt ]; then
34+
echo "package_tool=pip" >> $GITHUB_OUTPUT
35+
else
36+
# no lockfile present: create one and use pip caching
37+
echo "gardenlinux @ git+https://github.com/gardenlinux/python-gardenlinux-lib.git@${{ inputs.version }}" | tee -a requirements.txt
38+
echo "package_tool=pip" >> $GITHUB_OUTPUT
39+
fi
4140
4241
- name: Install Poetry
4342
if: steps.env-check.outputs.package_tool == 'poetry'

0 commit comments

Comments
 (0)