Skip to content

Commit 028b2ad

Browse files
committed
fix: do not overwrit when release manually triggered, there might be notes etc
1 parent b61cbeb commit 028b2ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release-manual.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,13 @@ jobs:
106106
uses: ncipollo/release-action@v1
107107
with:
108108
tag: ${{ steps.version.outputs.VERSION }}
109-
name: Release ${{ steps.version.outputs.VERSION }}
110-
body: Manual release ${{ steps.version.outputs.VERSION }}
109+
name: ${{ github.event_name == 'workflow_dispatch' && format('Release {0}', steps.version.outputs.VERSION) || '' }}
110+
body: ${{ github.event_name == 'workflow_dispatch' && format('Release {0}', steps.version.outputs.VERSION) || '' }}
111111
artifacts: |
112112
storage-cli-${{ steps.version.outputs.VERSION_NUMBER }}-linux-amd64
113113
storage-cli-${{ steps.version.outputs.VERSION_NUMBER }}-windows-amd64.exe
114114
token: ${{ secrets.GITHUB_TOKEN }}
115115
allowUpdates: true
116-
makeLatest: true
116+
makeLatest: true
117+
omitNameDuringUpdate: ${{ github.event_name == 'release' }}
118+
omitBodyDuringUpdate: ${{ github.event_name == 'release' }}

0 commit comments

Comments
 (0)