Skip to content

Commit 0866fd9

Browse files
committed
trying to modify environment file based on the python version
1 parent e7b6fa7 commit 0866fd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/conda-install/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ runs:
2323
# uncomment to install env in one go (without caching)
2424
# environment-file: environment.yml
2525

26+
- name: Modify environment file
27+
run: |
28+
sed -i "s/python>3.7/python=${{ inputs.python-version }}/g" environment.yml
29+
shell: bash
30+
2631
- name: Get Date
2732
id: get-date
2833
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)