Skip to content

Commit 1cba6f3

Browse files
authored
Merge pull request #6 from AIDA-HQ/fix-bash
Use actual bash scripting syntax
2 parents d8f781e + 04acfe1 commit 1cba6f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

action.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ runs:
7070
using: "composite"
7171
steps:
7272

73-
- uses: "actions/setup-python@v2"
73+
- uses: "actions/setup-python@v4"
7474

7575
- name: Update Package Versions
7676
shell: bash
@@ -82,7 +82,10 @@ runs:
8282

8383
- name: Update Python Versions
8484
shell: bash
85-
run: "[[ \"${{inputs.update_python}}\" == \"true\" ]] && sed -i 's/python_versions:.*/python_versions: [\"3.8\", \"3.9\", \"3.10\", \"3.11\"] /' \"${{ inputs.action_path }}\""
85+
run: |
86+
if [ "${{inputs.update_python}}" == "true" ]; \
87+
then sed -i 's/python_versions:.*/python_versions: [\"3.8\", \"3.9\", \"3.10\", \"3.11\"] /' "${{ inputs.action_path }}"; \
88+
else echo "Skipping python version update"; fi
8689
8790
- name: "Install Jinja2"
8891
shell: bash

0 commit comments

Comments
 (0)