github actions: Properly build custom Docker image

when `setup-android-sdk.sh` is modified.
This commit is contained in:
Tee KOBAYASHI 2022-03-10 22:58:20 +09:00 committed by xtkoba
parent ee6a1d675b
commit 8a5fe78e76
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ jobs:
fi
# Build local Docker image if setup scripts were changed.
# Useful for pull requests submitting changes for both build environment and packages.
if grep -qP '^scripts/(Dockerfile|setup-ubuntu\.sh)$' <<< "$CHANGED_FILES"; then
if grep -qP '^scripts/(Dockerfile|setup-android-sdk\.sh|setup-ubuntu\.sh)$' <<< "$CHANGED_FILES"; then
echo "Detected changes for environment setup scripts. Building custom Docker image now."
cd ./scripts
docker build -t termux/package-builder:latest .