fix: Abbreviate commit_sha to be the short SHA (#502)
This commit is contained in:
2
lib/index.js
generated
2
lib/index.js
generated
File diff suppressed because one or more lines are too long
@@ -119,11 +119,8 @@ core.info(`Running in ${baseDir}`)
|
|||||||
.then(async (data) => {
|
.then(async (data) => {
|
||||||
log(undefined, data)
|
log(undefined, data)
|
||||||
setOutput('committed', 'true')
|
setOutput('committed', 'true')
|
||||||
setOutput('commit_sha', data.commit)
|
setOutput('commit_long_sha', data.commit)
|
||||||
await git
|
setOutput('commit_sha', data.commit.substring(0, 7))
|
||||||
.revparse(data.commit)
|
|
||||||
.then((long_sha) => setOutput('commit_long_sha', long_sha))
|
|
||||||
.catch((err) => core.warning(`Couldn't parse long SHA:\n${err}`))
|
|
||||||
})
|
})
|
||||||
.catch((err) => core.setFailed(err))
|
.catch((err) => core.setFailed(err))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user