mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-12 22:01:35 +02:00
feat: add release_created per path in manifest PR (#310)
This commit is contained in:
6
index.js
6
index.js
@@ -45,12 +45,16 @@ async function runManifest (command) {
|
|||||||
|
|
||||||
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
|
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
|
||||||
if (releasesCreated) {
|
if (releasesCreated) {
|
||||||
core.setOutput('release_created', true)
|
|
||||||
core.setOutput('releases_created', true)
|
core.setOutput('releases_created', true)
|
||||||
for (const [path, release] of Object.entries(releasesCreated)) {
|
for (const [path, release] of Object.entries(releasesCreated)) {
|
||||||
if (!release) {
|
if (!release) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if (path === '.') {
|
||||||
|
core.setOutput('release_created', true)
|
||||||
|
} else {
|
||||||
|
core.setOutput(`${path}--release_created`, true)
|
||||||
|
}
|
||||||
for (const [key, val] of Object.entries(release)) {
|
for (const [key, val] of Object.entries(release)) {
|
||||||
if (path === '.') {
|
if (path === '.') {
|
||||||
core.setOutput(key, val)
|
core.setOutput(key, val)
|
||||||
|
|||||||
@@ -363,6 +363,7 @@ describe('release-please-action', () => {
|
|||||||
release_created: true,
|
release_created: true,
|
||||||
'path/pkgA--upload_url': 'http://example.com',
|
'path/pkgA--upload_url': 'http://example.com',
|
||||||
'path/pkgA--tag_name': 'v1.0.0',
|
'path/pkgA--tag_name': 'v1.0.0',
|
||||||
|
'path/pkgA--release_created': true,
|
||||||
tag_name: 'v1.0.0',
|
tag_name: 'v1.0.0',
|
||||||
upload_url: 'http://example.com',
|
upload_url: 'http://example.com',
|
||||||
pr: 25
|
pr: 25
|
||||||
|
|||||||
Reference in New Issue
Block a user