File tree Expand file tree Collapse file tree 3 files changed +16
-17
lines changed
Expand file tree Collapse file tree 3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ outputs:
1414runs :
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 : |
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ outputs:
1919runs :
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
Original file line number Diff line number Diff line change @@ -23,21 +23,20 @@ outputs:
2323runs :
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'
You can’t perform that action at this time.
0 commit comments