sourcegraph/dev/ci/bazel-prechecks-apply.sh
William Bezuidenhout 9dd486e9f9
aspect: use different dep step key if running as part of aspect (#58676)
* aspect: use different dep step key if running as part of aspect

* add check for bazel-configure.diff
2023-11-30 16:48:14 +02:00

15 lines
381 B
Bash
Executable File

#!/usr/bin/env bash
set -u
response=$(buildkite-agent artifact download bazel-configure.diff . --step bazel-prechecks 2>&1)
status=$?
if [[ $status -ne 0 && "$response" == *"No artifacts found for downloading"* ]]; then
echo "--- No bazel-configure.diff artifact found, skipping diff check"
exit 0
fi
if [ -f bazel-configure.diff ]; then
git apply bazel-configure.diff
fi