Skip to content

Commit a128a5c

Browse files
committed
Update build-release.yml
1 parent ebb5a21 commit a128a5c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build and release Lambda
33
on:
44
workflow_dispatch:
55
inputs:
6+
title:
7+
description: 'Title of the release'
8+
required: true
9+
default: 'New Update'
610
description:
711
description: 'Description of the release'
812
required: true
@@ -11,6 +15,10 @@ on:
1115
description: 'Is this a prerelease?'
1216
required: true
1317
default: false
18+
target:
19+
description: 'Target branch'
20+
required: true
21+
default: 'master'
1422

1523

1624
concurrency:
@@ -85,9 +93,9 @@ jobs:
8593
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8694
tag: ${{ steps.all.outputs.modVersion }}
8795
run: |
88-
gh release create "$tag" \
96+
gh release create "${{ steps.all.outputs.modVersion }}" \
8997
--repo="$GITHUB_REPOSITORY" \
90-
--title="${GITHUB_REPOSITORY##*/} $tag" \
98+
--title="Lambda ${{ steps.all.outputs.modVersion }} ${{ github.event.inputs.title }}" \
9199
--notes="${{ github.event.inputs.description }}" \
92100
$( [ "${{ github.event.inputs.prerelease }}" = "true" ] && echo "--prerelease" )
93101

0 commit comments

Comments
 (0)