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
43f61c501c
commit
c36d0fde95
8
.github/workflows/auto_release.yml
vendored
8
.github/workflows/auto_release.yml
vendored
|
@ -11,7 +11,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
folder:
|
folder:
|
||||||
description: 'Which folder to release (seafile-server/seahub/seahub-media)?'
|
description: 'Which folder to release?'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -102,7 +102,9 @@ jobs:
|
||||||
MESSAGES="Seafile version: $SEAFILE_VERSION"$'\n'"Image build version: $NEXT_BUILD"$'\n'"Changelog:"$'\n'"$MESSAGES"
|
MESSAGES="Seafile version: $SEAFILE_VERSION"$'\n'"Image build version: $NEXT_BUILD"$'\n'"Changelog:"$'\n'"$MESSAGES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "FORMATTED_MESSAGES=${MESSAGES//$'\n'/'%0A'}" >> $GITHUB_ENV
|
MESSAGES="${MESSAGES//$'\n'/'%0A'}
|
||||||
|
|
||||||
|
echo "MESSAGES=$MESSAGES" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: env.FOLDER_CHANGED != '' && env.SEAFILE_VERSION != ''
|
if: env.FOLDER_CHANGED != '' && env.SEAFILE_VERSION != ''
|
||||||
|
@ -112,6 +114,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }}
|
tag_name: ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }}
|
||||||
release_name: ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }}
|
release_name: ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }}
|
||||||
body: ${{ env.FORMATTED_MESSAGES }}
|
body: ${{ env.MESSAGES }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
Loading…
Reference in a new issue