Skip to content

Commit

Permalink
feat: add end-of-life support
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl authored Jan 24, 2022
1 parent 3c18f05 commit 58905fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
9 changes: 8 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 58905fe

Please sign in to comment.