Skip to content

Commit d9b34c0

Browse files
committed
use git log directly
1 parent eba2ff5 commit d9b34c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-images.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ jobs:
3737
# Display the current environment variables used throughout building
3838
# -- useful for debugging
3939
env_var_inventory
40+
set -x
41+
42+
if [[ "$(git log -1 --pretty=%B | head -n 1)" == *"[image skip]"* ]]; then
4043
41-
if [[ "${{ github.event.head_commit.message }}" == *"[image skip]"* ]]; then
4244
if tag_exists $BASE_BUSYBOX_IMAGE_NAME latest \
4345
&& tag_exists $BASE_DEBIAN_IMAGE_NAME latest \
4446
&& tag_exists $BUILD_ENV_IMAGE_NAME latest \
4547
&& tag_exists $BOT_IMAGE_NAME latest \
4648
&& tag_exists $ISSUE_RESPONDER_IMAGE_NAME latest \
47-
&& tag_exists $CREATE_ENV_IMAGE_NAME latest;
48-
then
49+
&& tag_exists $CREATE_ENV_IMAGE_NAME latest; then
4950
echo "DO_BUILD=false" >> $GITHUB_OUTPUT
5051
else
5152
echo "Although '[image skip]' was used in the commit message, no images exist on quay.io to use. So images will be built."

0 commit comments

Comments
 (0)