2018-11-11 08:19:04 -08:00
|
|
|
#!/usr/bin/env bash
|
2018-06-30 19:22:24 -07:00
|
|
|
#
|
|
|
|
# Only run snap.sh for pull requests that modify files under /snap
|
|
|
|
#
|
2018-12-18 17:33:28 -08:00
|
|
|
set -e
|
2018-12-18 17:33:28 -08:00
|
|
|
cd "$(dirname "$0")"/..
|
2018-06-30 19:22:24 -07:00
|
|
|
|
2018-12-18 17:33:28 -08:00
|
|
|
ci/affects-files.sh ^snap/ || {
|
2018-12-18 17:33:28 -08:00
|
|
|
echo "Skipping snap build as no files under /snap were modified"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
|
|
|
exec ci/snap.sh
|