You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ! changed_files="$(gh api --paginate "repos/$REPO/pulls/$PR_NUMBER/files" --jq '.[].filename')"; then
161
+
# Fail-safe: a transient API error must not block merge. Default to running.
162
+
echo "::warning::Could not list changed files; defaulting to running tests"
163
+
decide true "fail-safe (could not list changed files)"
88
164
exit 0
89
165
fi
90
166
91
-
changed_files="$(gh api --paginate "repos/${{ github.repository }}/pulls/${PR_NUMBER}/files" --jq '.[].filename')"
92
167
printf '%s\n' "$changed_files"
93
168
94
-
# config.yaml controls the base image names and tags consumed by the Docker build jobs.
95
-
if printf '%s\n' "$changed_files" | grep -qE '^(source/|docker/|tools/|apps/|scripts/|\.github/workflows/build\.yaml$|\.github/workflows/config\.yaml$|\.github/actions/)'; then
echo "Installation tests will be **skipped**: $reason."
104
+
fi
105
+
echo ""
106
+
echo "Triggered jobs: $triggered_jobs."
107
+
if [ -n "$files" ]; then
108
+
echo ""
109
+
render_table "$files"
110
+
fi
111
+
} >> "$GITHUB_STEP_SUMMARY"
112
+
}
113
+
114
+
if [ "$EVENT_NAME" != "pull_request" ]; then
115
+
decide true "non-PR event ($EVENT_NAME)"
116
+
exit 0
117
+
fi
118
+
119
+
if ! changed_files="$(gh api --paginate "repos/$REPO/pulls/$PR_NUMBER/files" --jq '.[].filename')"; then
120
+
# Fail-safe: a transient API error must not block merge. Default to running.
121
+
echo "::warning::Could not list changed files; defaulting to running tests"
122
+
decide true "fail-safe (could not list changed files)"
49
123
exit 0
50
124
fi
51
125
52
-
changed_files="$(gh api --paginate "repos/${{ github.repository }}/pulls/${PR_NUMBER}/files" --jq '.[].filename')"
53
126
printf '%s\n' "$changed_files"
54
127
55
-
if printf '%s\n' "$changed_files" | grep -qE '^(apps/|tools/|source/|\.github/actions/run-package-tests/|\.github/workflows/install-ci\.yml$|VERSION$)|(^|/)pyproject\.toml$|(^|/)environment\.ya?ml$'; then
0 commit comments