Skip to content

Commit 86261bf

Browse files
authored
Merge pull request #6741 from jieyouxu/diff-check-log-inputs
Log workflow inputs in `check_diff.sh`
2 parents d7a8486 + a207358 commit 86261bf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ci/check_diff.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,23 @@ function check_repo() {
184184
cd $WORKDIR
185185
}
186186

187+
# Log the inputs the script was invoked with in CI to aid diagnosing Diff Check failures.
188+
function log_inputs() {
189+
echo "::group::Diff Check inputs"
190+
echo "Remote repo:"
191+
echo "$REMOTE_REPO"
192+
echo "Feature branch:"
193+
echo "$FEATURE_BRANCH"
194+
echo "(Optional) Commit hash:"
195+
echo "$OPTIONAL_COMMIT_HASH"
196+
echo "(Optional) Rustfmt configs:"
197+
echo "$OPTIONAL_RUSTFMT_CONFIGS"
198+
echo "::endgroup::"
199+
}
200+
187201
function main() {
202+
log_inputs
203+
188204
tmp_dir=$(mktemp -d -t rustfmt-XXXXXXXX)
189205
echo Created tmp_dir $tmp_dir
190206

0 commit comments

Comments
 (0)