File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,13 @@ module.exports = async ({
44
44
isDryRun,
45
45
// Release manifest file path
46
46
releaseManifestPath,
47
+ // The commit-like reference that we want to release (e.g. a commit SHA or a branch name)
48
+ releaseCommitish,
47
49
} ) => {
48
50
assert ( github !== undefined , "The `github` argument is required" ) ;
49
51
assert ( isDryRun !== undefined , "The `isDryRun` argument is required" ) ;
50
52
assert ( releaseManifestPath !== undefined , "The `releaseManifestPath` argument is required" ) ;
53
+ assert ( releaseCommitish !== undefined , "The `releaseCommitish` argument is required" ) ;
51
54
52
55
console . info ( `Starting GitHub release creation with isDryRun: ${ isDryRun } , and releaseManifestPath: '${ releaseManifestPath } '` ) ;
53
56
@@ -74,6 +77,7 @@ module.exports = async ({
74
77
name : releaseManifest . name ,
75
78
body : releaseManifest . body ,
76
79
prerelease : releaseManifest . prerelease ,
80
+ target_commitish : releaseCommitish ,
77
81
} ) ;
78
82
console . info ( `SUCCESS: Created release with ID: ${ response . data . id } , URL: ${ response . data . html_url } ` ) ;
79
83
} else {
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ jobs:
184
184
github,
185
185
isDryRun: ${{ inputs.dry_run }},
186
186
releaseManifestPath: "smithy-rs-release/smithy-rs-release-manifest.json"
187
+ releaseCommitish: ${{ needs.upgrade-gradle-properties.outputs.release_branch }},
187
188
});
188
189
- name : Publish to crates.io
189
190
shell : bash
You can’t perform that action at this time.
0 commit comments