From 7d7eb29a557c268b43278506d8118a7ec83ca0c2 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Sat, 26 Aug 2023 13:22:49 +0200 Subject: [PATCH] update auto_release workflow --- .github/workflows/auto_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml index b84a389..6304a75 100644 --- a/.github/workflows/auto_release.yml +++ b/.github/workflows/auto_release.yml @@ -32,7 +32,7 @@ jobs: FOLDER_CHANGED=$(git diff --name-only HEAD^ HEAD | cut -d '/' -f1 | uniq) fi if [[ -f "$FOLDER_CHANGED/Dockerfile" ]]; then - SEAFILE_VERSION=$(grep 'SEAFILE_VERSION' $FOLDER_CHANGED/Dockerfile | awk -F'SEAFILE_VERSION=' '{print $2}' | awk '{print $1}' | tr -d '\n') + SEAFILE_VERSION=$(grep -m 1 'SEAFILE_VERSION' $FOLDER_CHANGED/Dockerfile | awk -F'SEAFILE_VERSION=' '{print $2}' | awk '{print $1}' | tr -d '\n') echo "SEAFILE_VERSION=$SEAFILE_VERSION" >> $GITHUB_ENV fi echo "FOLDER_CHANGED=$FOLDER_CHANGED" >> $GITHUB_ENV