From 662db991940e47ae00cd067780e80eb8bfa9971d Mon Sep 17 00:00:00 2001 From: Ani Argjiri Date: Fri, 29 Nov 2024 09:09:07 +0100 Subject: [PATCH] fix: apl-tools patch image generation (#1824) --- .github/workflows/cloudtty-build-push.yml | 2 +- .github/workflows/otomi-tools-build-push.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cloudtty-build-push.yml b/.github/workflows/cloudtty-build-push.yml index 1852dfbc6d..d02f6207cd 100644 --- a/.github/workflows/cloudtty-build-push.yml +++ b/.github/workflows/cloudtty-build-push.yml @@ -49,7 +49,7 @@ jobs: echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV echo OLD_VERSION = ${OLD_VERSION} echo NEW_VERSION = ${NEW_VERSION} - elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q "tools\/Dockerfile-tty"; then + elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q -x "tools\/Dockerfile-tty"; then # No special tag found, but changes were made to the tools/Dockerfile-tty so will upgrade the patch version. NEW_VERSION="$(echo ${OLD_VERSION} | awk -F. -v OFS=. '{$3 = $3 + 1} {print $0}')" echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV diff --git a/.github/workflows/otomi-tools-build-push.yaml b/.github/workflows/otomi-tools-build-push.yaml index deca377c44..8117664d8d 100644 --- a/.github/workflows/otomi-tools-build-push.yaml +++ b/.github/workflows/otomi-tools-build-push.yaml @@ -63,7 +63,7 @@ jobs: echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV echo OLD_VERSION = ${OLD_VERSION} echo NEW_VERSION = ${NEW_VERSION} - elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q "tools\/Dockerfile"; then + elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q -x "tools\/Dockerfile"; then # No special tag found, but changes were made to the tools/Dockerfile so will upgrade the patch version. NEW_VERSION="$(echo ${OLD_VERSION} | awk -F. -v OFS=. '{$3 = $3 + 1} {print $0}')" echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV