Skip to content

Commit

Permalink
update auto_release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ggogel committed Aug 26, 2023
1 parent ae1571d commit 06c2a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Determine Changed Directory and Extract Version
id: dir_version
Expand All @@ -30,7 +30,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= '{print $2}' | tr -d ' "')
SEAFILE_VERSION=$(grep 'SEAFILE_VERSION' $FOLDER_CHANGED/Dockerfile | awk -F'SEAFILE_VERSION=' '{print $2}' | awk '{print $1}')
echo "SEAFILE_VERSION=$SEAFILE_VERSION" >> $GITHUB_ENV
fi
echo "FOLDER_CHANGED=$FOLDER_CHANGED" >> $GITHUB_ENV
Expand Down

0 comments on commit 06c2a70

Please sign in to comment.