Skip to content

Commit 27a749f

Browse files
committed
Fix some things #9
1 parent 715ac1b commit 27a749f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

actions/ci_connection/action.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ runs:
4040
labels_json=${FALLBACK_LABELS}
4141
fi
4242
43+
# Pick an existing Python alias
44+
python_bin=$(which python3 2>/dev/null || which python)
45+
4346
labels=$(echo "$labels_json" | $python_bin -c "import sys, json; labels=[label['name'] for label in json.load(sys.stdin)]; print(json.dumps(labels))")
4447
fallback_labels=$(echo ${FALLBACK_LABELS} | $python_bin -c "import sys, json; labels=[label['name'] for label in json.load(sys.stdin)]; print(json.dumps(labels))")
4548
# Set the labels as an output

0 commit comments

Comments
 (0)