Skip to content

Commit 662db99

Browse files
authored
fix: apl-tools patch image generation (#1824)
1 parent be6aa6e commit 662db99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/cloudtty-build-push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
5050
echo OLD_VERSION = ${OLD_VERSION}
5151
echo NEW_VERSION = ${NEW_VERSION}
52-
elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q "tools\/Dockerfile-tty"; then
52+
elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q -x "tools\/Dockerfile-tty"; then
5353
# No special tag found, but changes were made to the tools/Dockerfile-tty so will upgrade the patch version.
5454
NEW_VERSION="$(echo ${OLD_VERSION} | awk -F. -v OFS=. '{$3 = $3 + 1} {print $0}')"
5555
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV

.github/workflows/otomi-tools-build-push.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
6464
echo OLD_VERSION = ${OLD_VERSION}
6565
echo NEW_VERSION = ${NEW_VERSION}
66-
elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q "tools\/Dockerfile"; then
66+
elif git diff-tree --no-commit-id --name-only ${{ github.sha }} -r | grep -q -x "tools\/Dockerfile"; then
6767
# No special tag found, but changes were made to the tools/Dockerfile so will upgrade the patch version.
6868
NEW_VERSION="$(echo ${OLD_VERSION} | awk -F. -v OFS=. '{$3 = $3 + 1} {print $0}')"
6969
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)