Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
feat: add release_created per path in manifest PR (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 25, 2021
1 parent fabd345 commit 5f94ede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions test/release-please.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f94ede

Please sign in to comment.