Skip to content

Commit 2e9e5d5

Browse files
ci(versioning): actionlint-konformes polling fuer versioning-label
1 parent 024d428 commit 2e9e5d5

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/version-policy.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ jobs:
3838
labels_json="[]"
3939
for _ in {1..12}; do
4040
labels_json="$(python3 tools/ci/bin/github_api.py issue-labels --repo "${REPO}" --issue "${PR_NUMBER}")"
41-
count="$(python3 - <<'PY' "${labels_json}"
42-
import json
43-
import sys
44-
labels = json.loads(sys.argv[1])
45-
print(sum(1 for l in labels if isinstance(l, str) and l.startswith("versioning:")))
46-
PY
47-
)"
41+
count="$(python3 -c 'import json,sys; labels=json.loads(sys.argv[1]); print(sum(1 for l in labels if isinstance(l, str) and l.startswith("versioning:")))' "${labels_json}")"
4842
if [[ "${count}" -eq 1 ]]; then
4943
break
5044
fi

0 commit comments

Comments
 (0)