File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ async function runManifest (command) {
4444 if ( command === 'manifest-pr' ) return
4545
4646 const releasesCreated = await factory . runCommand ( 'manifest-release' , manifestOpts )
47+ const pathsReleased = [ ]
4748 if ( releasesCreated ) {
4849 core . setOutput ( 'releases_created' , true )
4950 for ( const [ path , release ] of Object . entries ( releasesCreated ) ) {
5051 if ( ! release ) {
5152 continue
5253 }
54+ pathsReleased . push ( path )
5355 if ( path === '.' ) {
5456 core . setOutput ( 'release_created' , true )
5557 } else {
@@ -64,6 +66,9 @@ async function runManifest (command) {
6466 }
6567 }
6668 }
69+ // Paths of all releases that were created, so that they can be passed
70+ // to matrix in next step:
71+ core . setOutput ( 'paths_released' , JSON . stringify ( pathsReleased ) )
6772}
6873
6974async function main ( ) {
Original file line number Diff line number Diff line change @@ -366,7 +366,8 @@ describe('release-please-action', () => {
366366 'path/pkgA--release_created' : true ,
367367 tag_name : 'v1.0.0' ,
368368 upload_url : 'http://example.com' ,
369- pr : 25
369+ pr : 25 ,
370+ paths_released : '["path/pkgA","."]'
370371 } )
371372 } )
372373
You can’t perform that action at this time.
0 commit comments