-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: automate release issue creation (#12741)
* feat: automate release issue creation * chore: run go mod tidy * chore: organize imports in the release cmd * fix: layout format given to the date parser * ci: automate release issue creation from v1.32.0 learnings (#12749) * ci: automate release issue creation from v1.32.0 learnings * Self-review feedback from looking at #12749 * Fix String contains ordering bugs. * chore: run gofmt --------- Co-authored-by: galargh <[email protected]> * fix: update workflow input parameters * ci: use custom field types in the create issue workflow * Update cmd/release/main.go Co-authored-by: Rod Vagg <[email protected]> * Update cmd/release/main.go Co-authored-by: Rod Vagg <[email protected]> * Incorporating rvagg@ comments * Incorporating more feedback --------- Co-authored-by: Steve Loeppky <[email protected]> Co-authored-by: Rod Vagg <[email protected]>
- Loading branch information
1 parent
b37410b
commit dff8bfd
Showing
6 changed files
with
465 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Create Release Issue | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
type: | ||
description: "What's the type of the release?" | ||
required: true | ||
type: choice | ||
options: | ||
- node | ||
- miner | ||
- both | ||
tag: | ||
description: "What's the tag of the release? (e.g., 1.30.1)" | ||
required: true | ||
level: | ||
description: "What's the level of the release?" | ||
required: true | ||
default: 'warning' | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
network-upgrade: | ||
description: "What's the version of the network upgrade this release is related to? (e.g. 25)" | ||
required: false | ||
discussion-link: | ||
description: "What's a link to the GitHub Discussions topic for the network upgrade?" | ||
required: false | ||
changelog-link: | ||
description: "What's a link to the Lotus CHANGELOG entry for the network upgrade?" | ||
required: false | ||
rc1-date: | ||
description: "What's the expected shipping date for RC1?" | ||
required: false | ||
stable-date: | ||
description: "What's the expected shipping date for the stable release?" | ||
required: false | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
create-issue: | ||
name: Create Release Issue | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install-go | ||
- env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: | | ||
go run cmd/release/main.go create-issue \ | ||
--create-on-github true \ | ||
--type "${{ github.event.inputs.type }}" \ | ||
--tag "${{ github.event.inputs.tag }}" \ | ||
--level "${{ github.event.inputs.level }}" \ | ||
--network-upgrade "${{ github.event.inputs.network-upgrade }}" \ | ||
--discussion-link "${{ github.event.inputs.discussion-link }}" \ | ||
--changelog-link "${{ github.event.inputs.changelog-link }}" \ | ||
--rc1-date "${{ github.event.inputs.rc1-date }}" \ | ||
--stable-date "${{ github.event.inputs.stable-date }}" \ | ||
--repo "filecoin-project/lotus" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.