mirror of
https://github.com/rlespinasse/shortify-git-revision.git
synced 2026-05-17 18:25:31 +00:00
feat: expose short value as output
This commit is contained in:
committed by
Romain Lespinasse
parent
8198b7ea44
commit
4c6b226848
20
README.md
20
README.md
@@ -68,6 +68,19 @@ If a revision is a bad revision, this action will produce an error message and f
|
||||
- `SIZED_REVISION`
|
||||
- `SIZED_REVISION_SHORT` (with value `88428f56bd`)
|
||||
|
||||
- Shortify without publishing the environment variables
|
||||
|
||||
```yaml
|
||||
- uses: actions/checkout@v3
|
||||
- uses: rlespinasse/shortify-git-revision@v1
|
||||
with:
|
||||
name: GITHUB_SHA
|
||||
```
|
||||
|
||||
Will **not** make available
|
||||
|
||||
- `GITHUB_SHA_SHORT`
|
||||
|
||||
## Inputs
|
||||
|
||||
### `name`
|
||||
@@ -107,3 +120,10 @@ This input is _Optional_.
|
||||
the `short` sha produce will have the length defined by the input.
|
||||
|
||||
This input is _Optional_.
|
||||
|
||||
## Outputs
|
||||
|
||||
| Output | Description |
|
||||
| -------- | --------------------------- |
|
||||
| revision | The revision to be shortify |
|
||||
| short | Revision Short |
|
||||
|
||||
Reference in New Issue
Block a user