Skip to content

Commit 16bbd93

Browse files
Copilotpmcelhaney
andauthored
Fix invalid YAML in manual-acceptance-tests workflow
Agent-Logs-Url: https://github.com/counterfact/api-simulator/sessions/40ab7b1b-b961-4d62-a171-3c23e0729741 Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
1 parent 7460b4f commit 16bbd93

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/manual-acceptance-tests.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)