We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 715ac1b commit 27a749fCopy full SHA for 27a749f
actions/ci_connection/action.yaml
@@ -40,6 +40,9 @@ runs:
40
labels_json=${FALLBACK_LABELS}
41
fi
42
43
+ # Pick an existing Python alias
44
+ python_bin=$(which python3 2>/dev/null || which python)
45
+
46
labels=$(echo "$labels_json" | $python_bin -c "import sys, json; labels=[label['name'] for label in json.load(sys.stdin)]; print(json.dumps(labels))")
47
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))")
48
# Set the labels as an output
0 commit comments