Skip to content

Commit 820f1e0

Browse files
committed
Refine the validation
1 parent 84bc1dc commit 820f1e0

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/docker-images.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@ jobs:
9494
- name: Validate nightly tag suffix
9595
if: github.event_name == 'schedule'
9696
run: |
97-
case "$tag" in
98-
*-SNAPSHOT) ;;
99-
*)
100-
echo "Nightly image tag must end with -SNAPSHOT, got: $tag"
101-
exit 1
102-
;;
103-
esac
97+
if [[ "$tag" != *-SNAPSHOT ]]; then
98+
echo "Nightly image tag must end with -SNAPSHOT, got: $tag"
99+
exit 1
100+
fi
104101
105102
- name: Build Hive project
106103
if: github.event_name != 'workflow_dispatch'

0 commit comments

Comments
 (0)