1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-08 23:41:12 +02:00

feat: output list of paths released during manifest release (#362)

This commit is contained in:
Benjamin E. Coe
2021-09-12 20:52:27 -04:00
committed by GitHub
parent 6a9c957f09
commit 670afac8ab
2 changed files with 7 additions and 1 deletions

View File

@@ -44,12 +44,14 @@ async function runManifest (command) {
if (command === 'manifest-pr') return
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
const pathsReleased = []
if (releasesCreated) {
core.setOutput('releases_created', true)
for (const [path, release] of Object.entries(releasesCreated)) {
if (!release) {
continue
}
pathsReleased.push(path)
if (path === '.') {
core.setOutput('release_created', true)
} else {
@@ -64,6 +66,9 @@ async function runManifest (command) {
}
}
}
// Paths of all releases that were created, so that they can be passed
// to matrix in next step:
core.setOutput('paths_released', JSON.stringify(pathsReleased))
}
async function main () {

View File

@@ -366,7 +366,8 @@ describe('release-please-action', () => {
'path/pkgA--release_created': true,
tag_name: 'v1.0.0',
upload_url: 'http://example.com',
pr: 25
pr: 25,
paths_released: '["path/pkgA","."]'
})
})