Skip to content

Commit 670afac

Browse files
author
Benjamin E. Coe
authored
feat: output list of paths released during manifest release (#362)
1 parent 6a9c957 commit 670afac

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6974
async function main () {

test/release-please.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)