1
0
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:
Benjamin Levesque
2023-03-19 11:36:59 +01:00
parent 07f50eae02
commit 36eb8c5309
5 changed files with 33 additions and 9 deletions

2
dist/index.js vendored
View File

@@ -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);