From 4ecf1f1de60182d61b59f268260660e2833836ac Mon Sep 17 00:00:00 2001 From: Sangelo Date: Wed, 3 Apr 2024 12:46:25 +0200 Subject: [PATCH] [c] modify workflow if-statement to work in SH --- .forgejo/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index ccf9acb..2025f3e 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -42,7 +42,7 @@ jobs: docker push "gitpot.dev/sangelo/website:${TAG}" # publish tag latest as well - if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then + if echo "${{ github.ref }}" | grep -q "refs/tags/"; then docker tag "gitpot.dev/sangelo/website:${TAG}" "gitpot.dev/sangelo/website:latest" docker push "gitpot.dev/sangelo/website:latest" fi