mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-14 02:01:32 +02:00
chore: build dist release-please-action (#363)
This commit is contained in:
committed by
GitHub
parent
670afac8ab
commit
26368176f2
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -51,12 +51,14 @@ async function runManifest (command) {
|
|||||||
if (command === 'manifest-pr') return
|
if (command === 'manifest-pr') return
|
||||||
|
|
||||||
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
|
const releasesCreated = await factory.runCommand('manifest-release', manifestOpts)
|
||||||
|
const pathsReleased = []
|
||||||
if (releasesCreated) {
|
if (releasesCreated) {
|
||||||
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
|
||||||
}
|
}
|
||||||
|
pathsReleased.push(path)
|
||||||
if (path === '.') {
|
if (path === '.') {
|
||||||
core.setOutput('release_created', true)
|
core.setOutput('release_created', true)
|
||||||
} else {
|
} else {
|
||||||
@@ -71,6 +73,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 () {
|
async function main () {
|
||||||
|
|||||||
Reference in New Issue
Block a user