File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,16 @@ jobs:
1717 PR_BODY : ${{ github.event.pull_request.body }}
1818 PR_LABELS : ${{ toJson(github.event.pull_request.labels.*.name) }}
1919 run : |
20- if python3 -c "
21- import json, os, sys
22- try :
23- labels = json.loads(os.environ.get('PR_LABELS', '[]'))
24- sys.exit(0 if 'design' in labels else 1)
25- except Exception as e :
26- print(f'Error parsing PR labels : {e}', file=sys.stderr)
27- sys.exit(1)
28- " ; then
20+ if python3 - <<'PY'
21+ import json, os, sys
22+ try:
23+ labels = json.loads(os.environ.get('PR_LABELS', '[]'))
24+ sys.exit(0 if 'design' in labels else 1)
25+ except Exception as e:
26+ print(f'Error parsing PR labels: {e}', file=sys.stderr)
27+ sys.exit(1)
28+ PY
29+ then
2930 echo "enforce=false" >> "$GITHUB_OUTPUT"
3031 elif [[ "$PR_BRANCH" == copilot* ]] || grep -iq "## manual acceptance tests" <<<"$PR_BODY"; then
3132 echo "enforce=true" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments