From c1fba7ee0c11ad850d3e58aa423c2503b9148d72 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Fri, 13 Sep 2024 17:53:56 -0500 Subject: [PATCH] give error message --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bdb9bc4..52d0b58 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,9 @@ jobs: - name: Check delimited-string for Docker tags run: | echo "${{ steps.docker-tags.outputs.target_string }}" - if [ "${{ steps.docker-tags.outputs.target_string }}" != "ghcr.io/foo-bar:dev, ghcr.io/foo-bar:tst, ghcr.io/foo-bar:prd" ]; then + + expected="ghcr.io/foo-bar:dev, ghcr.io/foo-bar:tst, ghcr.io/foo-bar:prd" + if [ "${{ steps.docker-tags.outputs.target_string }}" != "$expected" ]; then + echo "${{ steps.docker-tags.outputs.target_string }} does not match $expected" exit 1 fi