mirror of
https://github.com/benjlevesque/short-sha.git
synced 2025-12-06 17:57:50 +01:00
Enable customization of env variable name
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -52,7 +52,7 @@ function run() {
|
||||
const shortSha = (0, shorten_1.shorten)(sha, length);
|
||||
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