Skip to content

Commit b83bf69

Browse files
authored
ci(release): fix the create release issue workflow (#12826)
ci: fix the create release issue workflow
1 parent 4a66850 commit b83bf69

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/create-release-issue.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ on:
3535
rc1-date:
3636
description: "What's the expected shipping date for RC1?"
3737
required: false
38+
default: "TBD"
3839
stable-date:
3940
description: "What's the expected shipping date for the stable release?"
4041
required: false
42+
default: "TBD"
4143

4244
defaults:
4345
run:
@@ -58,7 +60,7 @@ jobs:
5860
GITHUB_TOKEN: ${{ github.token }}
5961
run: |
6062
go run cmd/release/main.go create-issue \
61-
--create-on-github true \
63+
--create-on-github=true \
6264
--type "${{ github.event.inputs.type }}" \
6365
--tag "${{ github.event.inputs.tag }}" \
6466
--level "${{ github.event.inputs.level }}" \

cmd/release/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,9 @@ func main() {
285285
}
286286
}
287287

288-
rc1Date := c.String("rc1-date")
289288
releaseDateStringRegexp := regexp.MustCompile(releaseDateStringPattern)
289+
290+
rc1Date := c.String("rc1-date")
290291
if rc1Date != "TBD" {
291292
matches := releaseDateStringRegexp.FindStringSubmatch(rc1Date)
292293
if matches == nil {

0 commit comments

Comments
 (0)