From 5cac3dc4ea225288a90889ff503063488f81ef6e Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 9 Dec 2023 23:10:56 +0100 Subject: [PATCH] fix: ambigous redirect --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 23548eb..2158ae6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,14 +24,13 @@ jobs: password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Get latest version run: | - curl -s https://api.github.com/repos/pocketbase/pocketbase/releases/latest \ + echo "VERSION=$(curl -s https://api.github.com/repos/pocketbase/pocketbase/releases/latest \ | grep "tag_name" \ | awk '{print $2}' \ | tr -d '"' \ | tr -d ',' \ | tr -d 'v' \ - | tr -d ' ' \ - >> $VERSION + | tr -d ' ')" >> $GITHUB_ENV - name: Build and push uses: docker/build-push-action@v5 with: