Skip to content

Commit d8dc10e

Browse files
refactor: update label check in cloudbuild to read from pr_data.json instead of piped input
1 parent 2cf40be commit d8dc10e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ steps:
4545
PR_TITLE=$(echo "$$PR_DATA" | jq -r '.title')
4646
4747
# Check if execution labels are present using exact matching via jq
48-
if ! echo "$$PR_DATA" | jq -e '.labels | any(.name == "autorelease: pending" or .name == "ci:run-evals")' > /dev/null; then
48+
if ! jq -e '.labels | any(.name == "autorelease: pending" or .name == "ci:run-evals")' pr_data.json > /dev/null; then
4949
echo "PR does not have 'autorelease: pending' or 'ci:run-evals' label. Skipping execution."
5050
exit 0
5151
fi

0 commit comments

Comments
 (0)