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 0a08e50 commit 832578c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,25 @@ jobs:
COMMIT_RANGE="${LAST_COMMIT_FOR_TAG}..HEAD"
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
if git diff-tree --no-commit-id --name-only -r $commit | grep "^$FOLDER_CHANGED/"; then
MESSAGE=$(git log --format=%B -n 1 $commit)
MESSAGES="$MESSAGES\n$commit: $MESSAGE"
MESSAGES+="- $commit: $MESSAGE\n"
fi
done
echo "MESSAGES=$MESSAGES" >> $GITHUB_ENV
echo "MESSAGES=$MESSAGES"
echo -e "MESSAGES=$MESSAGES"
shell: /usr/bin/bash -e {0}
env:
SEAFILE_VERSION: ${{ env.SEAFILE_VERSION }}
FOLDER_CHANGED: ${{ env.FOLDER_CHANGED }}
NEXT_BUILD: ${{ env.NEXT_BUILD }}
LAST_TAG: ${{ env.LAST_TAG }}

- name: Create Release
if: env.FOLDER_CHANGED != '' && env.SEAFILE_VERSION != ''
Expand Down

0 comments on commit 832578c

Please sign in to comment.