diff --git a/action.yml b/action.yml index c1f714f..7ef0826 100644 --- a/action.yml +++ b/action.yml @@ -40,3 +40,7 @@ outputs: description: The source code url for the code we are reviewing commit: description: The commit ref of the source code we are reviewing + end-of-life: + description: Mark build as end-of-life + end-of-life-rebase: + description: "Mark new refs as end-of-life. This one takes an ID that supersedes the current one. By the user's request, the application data may be preserved for the new application. Note, this is actually a prefix match, so if you say org.the.app=org.new.app, then something like org.the.app.Locale will be rebased to org.new.app.Locale." diff --git a/src/index.js b/src/index.js index fcd6d2f..4c4eda5 100644 --- a/src/index.js +++ b/src/index.js @@ -84,18 +84,25 @@ async function run () { const filePath = await getChangedFile() if (filePath != null) { - const { rdnn, version, source, commit } = await fileData(filePath) + const result = await fileData(filePath) + const { rdnn, version, source, commit } = result + const endOfLife = result['end-of-life'] + const endOfLifeRebase = result['end-of-life-rebase'] core.info('Found this information:') core.info(`RDNN: ${rdnn}`) core.info(`Version: ${version}`) core.info(`Source: ${source}`) core.info(`Commit: ${commit}`) + core.info(`end-of-life: ${endOfLife}`) + core.info(`end-of-life-rebase: ${endOfLifeRebase}`) core.setOutput('rdnn', rdnn) core.setOutput('version', version) core.setOutput('source', source) core.setOutput('commit', commit) + core.setOutput('end-of-life', endOfLife) + core.setOutput('end-of-life-rebase', endOfLifeRebase) } }