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

feat: add release_created per path in manifest PR (#310)

This commit is contained in:
Blaine Bublitz
2021-06-25 14:54:33 -07:00
committed by GitHub
parent fabd3458ca
commit 5f94ededed
2 changed files with 6 additions and 1 deletions

View File

@@ -45,12 +45,16 @@ async function runManifest (command) {
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
if (releasesCreated) {
core.setOutput('release_created', true)
core.setOutput('releases_created', true)
for (const [path, release] of Object.entries(releasesCreated)) {
if (!release) {
continue
}
if (path === '.') {
core.setOutput('release_created', true)
} else {
core.setOutput(`${path}--release_created`, true)
}
for (const [key, val] of Object.entries(release)) {
if (path === '.') {
core.setOutput(key, val)

View File

@@ -363,6 +363,7 @@ describe('release-please-action', () => {
release_created: true,
'path/pkgA--upload_url': 'http://example.com',
'path/pkgA--tag_name': 'v1.0.0',
'path/pkgA--release_created': true,
tag_name: 'v1.0.0',
upload_url: 'http://example.com',
pr: 25