mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 14:31:56 +00:00
* aspect: use different dep step key if running as part of aspect * add check for bazel-configure.diff
15 lines
381 B
Bash
Executable File
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
|