Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ci/check_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,23 @@ function check_repo() {
cd $WORKDIR
}

# Log the inputs the script was invoked with in CI to aid diagnosing Diff Check failures.
function log_inputs() {
echo "::group::Diff Check inputs"
echo "Remote repo:"
echo "$REMOTE_REPO"
echo "Feature branch:"
echo "$FEATURE_BRANCH"
echo "(Optional) Commit hash:"
echo "$OPTIONAL_COMMIT_HASH"
echo "(Optional) Rustfmt configs:"
echo "$OPTIONAL_RUSTFMT_CONFIGS"
echo "::endgroup::"
}

function main() {
log_inputs

tmp_dir=$(mktemp -d -t rustfmt-XXXXXXXX)
echo Created tmp_dir $tmp_dir

Expand Down
Loading