Skip to content

Commit

Permalink
Add an annotation of python version when setup-python is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed May 19, 2024
1 parent e01dab0 commit 27ce86f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ runs:
fi
echo "architecture=$architecture" >> $GITHUB_ENV
echo "os_name=$os_name" >> $GITHUB_ENV
echo "::notice title=Runner Platform::$os_name-$architecture"
shell: bash

- name: Setup Arguments
Expand Down Expand Up @@ -136,6 +135,8 @@ runs:
echo "::warning title=Command404::'python' could not be found, using 'setup-python'"
echo "setup_python=true" >> $GITHUB_ENV
else
pyversion=$(python -V)
echo "::notice title=Python Source::Using '$pyversion' from ${{ env.os_name }}-${{ env.architecture }}"
echo "setup_python=false" >> $GITHUB_ENV
fi
fi
Expand Down

0 comments on commit 27ce86f

Please sign in to comment.