We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61d58bf commit ee4c60eCopy full SHA for ee4c60e
action.yml
@@ -27,8 +27,14 @@ runs:
27
run: |
28
set -eu
29
30
- which python >/dev/null 2>&1 && exit 0
31
- echo "Python not found. Installing..."
+ if python >/dev/null 2>&1 ; then
+ if ! python -c "import requests" 2>/dev/null ; then
32
+ echo "= Python requests not found. Installing with pip"
33
+ python3 -m pip install requests
34
+ fi
35
+ exit 0
36
37
+ echo "= Python not found. Installing..."
38
39
which apt >/dev/null 2>&1 || (echo "ERROR: This action requires 'apt'"; exit 1)
40
0 commit comments