Skip to content

Commit

Permalink
fix: apl-tools patch image generation (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ani1357 authored Nov 29, 2024
1 parent be6aa6e commit 662db99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cloudtty-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/otomi-tools-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 662db99

Please sign in to comment.