mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
update auto_release workflow
This commit is contained in:
parent
2e78440290
commit
23e22bbaaf
3
.github/workflows/auto_release.yml
vendored
3
.github/workflows/auto_release.yml
vendored
|
@ -32,8 +32,7 @@ jobs:
|
||||||
FOLDER_CHANGED=$(git diff --name-only HEAD^ HEAD | cut -d '/' -f1 | uniq)
|
FOLDER_CHANGED=$(git diff --name-only HEAD^ HEAD | cut -d '/' -f1 | uniq)
|
||||||
fi
|
fi
|
||||||
if [[ -f "$FOLDER_CHANGED/Dockerfile" ]]; then
|
if [[ -f "$FOLDER_CHANGED/Dockerfile" ]]; then
|
||||||
SEAFILE_VERSION=$(grep 'SEAFILE_VERSION' $FOLDER_CHANGED/Dockerfile | awk -F'SEAFILE_VERSION=' '{print $2}' | awk '{print $1}')
|
SEAFILE_VERSION=$(grep 'SEAFILE_VERSION' $FOLDER_CHANGED/Dockerfile | awk -F'SEAFILE_VERSION=' '{print $2}' | awk '{print $1}' | tr -d '\n')
|
||||||
SEAFILE_VERSION=$(echo "$SEAFILE_VERSION" | tr -d '\n\r')
|
|
||||||
echo "SEAFILE_VERSION=$SEAFILE_VERSION" >> $GITHUB_ENV
|
echo "SEAFILE_VERSION=$SEAFILE_VERSION" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
echo "FOLDER_CHANGED=$FOLDER_CHANGED" >> $GITHUB_ENV
|
echo "FOLDER_CHANGED=$FOLDER_CHANGED" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Reference in a new issue