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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user