1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2025-12-07 10:17:51 +01:00

Enable customization of env variable name

This commit is contained in:
Benjamin Levesque
2023-03-19 11:36:59 +01:00
parent 07f50eae02
commit 36eb8c5309
5 changed files with 33 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ async function run(): Promise<void> {
core.debug(`Output: ${shortSha}`)
core.setOutput('sha', shortSha)
core.exportVariable('SHA', shortSha)
core.exportVariable(core.getInput('variable_name'), shortSha)
} catch (error) {
core.setFailed(error.message)
}