From 3372a57db99e144d68cf5dda854e517bd4c0e9e3 Mon Sep 17 00:00:00 2001 From: Damian Mee Date: Fri, 13 Mar 2020 23:39:08 +0800 Subject: [PATCH] =?UTF-8?q?Order=20matters=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/on-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml index 39216f7..9bd94fe 100644 --- a/.github/workflows/on-tag.yml +++ b/.github/workflows/on-tag.yml @@ -41,9 +41,9 @@ jobs: exit 1 fi + VERSION="$(echo "$GITHUB_REF" | sed -E "s|$TAG_FMT|\2|")" DIR="$(echo "${VERSION#v}" | cut -d. -f-2)" - VERSION="$(echo "$GITHUB_REF" | sed -E "s|$TAG_FMT|\2|")" if ! grep -q "^ARG VERSION=${VERSION#v}$" "$DIR/Dockerfile"; then echo "ERR: $DIR/Dockerfile must contain VERSION=$VERSION" exit 1