mirror of
https://github.com/benjlevesque/short-sha.git
synced 2025-12-06 09:47:49 +01:00
ead48671cdd34302e980b4c14c040dd54d8bcf8a
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Short SHA
short-sha is a GitHub Action than provides an output sha with the shortened commit SHA.
⚠️ On November 16th, 2020 Github removes the
set-envcommand. Version prior to v1.2 of this action will not work. See github annoucement for details.
Usage
name: 'build-test'
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: benjlevesque/short-sha@v1.2
id: short-sha
with:
length: 6
- run: echo $SHA
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- run: echo $SHA
env:
SHA: ${{ env.SHA }}
Options
| Name | Required | Default | Description |
|---|---|---|---|
| length | false |
8 | the expected length of the shortened SHA |
Languages
TypeScript
88.9%
JavaScript
11.1%