diff --git a/README.md b/README.md index 6b37266..1316eb1 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,10 @@ The minor part of the version extracted from the git tag (`"v1.2.3"` -> `"3"`) If `is-release-commit` is `"false"`, the next semantic version based on the commits since the last release is returned. Otherwise, the currently built version is returned. +### `current-commit-sha` + +The short SHA of the current commit, i.e. `"d09e6f6"` + ## Example usage diff --git a/action.yml b/action.yml index 4c78a23..db01125 100644 --- a/action.yml +++ b/action.yml @@ -22,6 +22,8 @@ outputs: description: 'The bugfix part of the version extracted from the git tag ("v1.2.3" -> "3")' next-semantic-version: description: 'If is-release-commit is false, the next semantic version based on the commits since the last release is returned. Otherwise, the currently built version is returned.' + current-commit-sha: + description: 'The short SHA of the current commit, i.e. "d09e6f6"' runs: using: 'node20' main: 'dist/action.js'