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
832578c550
commit
dc6eb3ac61
19
.github/workflows/auto_release.yml
vendored
19
.github/workflows/auto_release.yml
vendored
|
@ -78,25 +78,18 @@ jobs:
|
||||||
COMMIT_RANGE="${LAST_COMMIT_FOR_TAG}..HEAD"
|
COMMIT_RANGE="${LAST_COMMIT_FOR_TAG}..HEAD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MESSAGES+="Seafile version: $SEAFILE_VERSION\n"
|
|
||||||
MESSAGES+="Image build version: $NEXT_BUILD\n"
|
|
||||||
MESSAGES+="Changelog:\n"
|
|
||||||
|
|
||||||
for commit in $(git log --pretty=format:'%H' $COMMIT_RANGE); do
|
for commit in $(git log --pretty=format:'%H' $COMMIT_RANGE); do
|
||||||
if git diff-tree --no-commit-id --name-only -r $commit | grep "^$FOLDER_CHANGED/"; then
|
if git diff-tree --no-commit-id --name-only -r $commit | grep "^$FOLDER_CHANGED/"; then
|
||||||
MESSAGE=$(git log --format=%B -n 1 $commit)
|
MESSAGE=$(git log --format=%B -n 1 $commit)
|
||||||
MESSAGES+="- $commit: $MESSAGE\n"
|
MESSAGES="$MESSAGES- $commit: $MESSAGE\n"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "MESSAGES=$MESSAGES" >> $GITHUB_ENV
|
MESSAGES="Seafile version: $SEAFILE_VERSION\nImage build version: $NEXT_BUILD\nChangelog:\n$MESSAGES"
|
||||||
echo -e "MESSAGES=$MESSAGES"
|
|
||||||
shell: /usr/bin/bash -e {0}
|
echo "MESSAGES<<EOF" >> $GITHUB_ENV
|
||||||
env:
|
echo "$MESSAGES" >> $GITHUB_ENV
|
||||||
SEAFILE_VERSION: ${{ env.SEAFILE_VERSION }}
|
echo "EOF" >> $GITHUB_ENV
|
||||||
FOLDER_CHANGED: ${{ env.FOLDER_CHANGED }}
|
|
||||||
NEXT_BUILD: ${{ env.NEXT_BUILD }}
|
|
||||||
LAST_TAG: ${{ env.LAST_TAG }}
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: env.FOLDER_CHANGED != '' && env.SEAFILE_VERSION != ''
|
if: env.FOLDER_CHANGED != '' && env.SEAFILE_VERSION != ''
|
||||||
|
|
Loading…
Reference in a new issue