affected_files metadata is only available for PR builds
This commit is contained in:
parent
3bfb052b0a
commit
bc52336a1b
|
@ -9,12 +9,14 @@ annotate() {
|
|||
}
|
||||
}
|
||||
|
||||
affectedFiles="$(buildkite-agent meta-data get affected_files)"
|
||||
echo "Affected files in this PR: $affectedFiles"
|
||||
if [[ ! ":$affectedFiles:" =~ \.rs: ]]; then
|
||||
annotate --style info --context coverage-info \
|
||||
"Coverage skipped as no .rs files were modified"
|
||||
exit 0
|
||||
if ci/is-pr.sh; then
|
||||
affectedFiles="$(buildkite-agent meta-data get affected_files)"
|
||||
echo "Affected files in this PR: $affectedFiles"
|
||||
if [[ ! ":$affectedFiles:" =~ \.rs: ]]; then
|
||||
annotate --style info --context coverage-info \
|
||||
"Coverage skipped as no .rs files were modified"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
source ci/upload-ci-artifact.sh
|
||||
|
|
Loading…
Reference in New Issue