From 851b0efc151987a3f4cd6d2c3c2df0904fe4a764 Mon Sep 17 00:00:00 2001 From: Zurdi Date: Fri, 22 Dec 2023 22:07:39 +0100 Subject: [PATCH] fixed rc version finder --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9bdac7ed3..23c2c2a65 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,8 +52,7 @@ jobs: - name: Get last image tag if: ${{ inputs.releaseCandidate }} run: | - CURRENT_RC_VERSION=$(wget -q -O - "https://hub.docker.com/v2/repositories/zurdi15/romm/tags?page_size=2" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep "dev-${version}-rc" | cut -d "-" -f 3 | cut -d "." -f 2) - NEXT_RC_VERSION=$(($CURRENT_RC_VERSION + 1)) + CURRENT_RC_VERSION=$(wget -q -O - "https://hub.docker.com/v2/repositories/zurdi15/romm/tags?page_size=2" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep "dev-${{ inputs.version }}-rc" | cut -d "-" -f 3 | cut -d "." -f 2) echo "NEXT_RC_VERSION=$(($CURRENT_RC_VERSION + 1))" >> $GITHUB_ENV - name: Test get last image tag variable