1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2025-12-06 09:47:49 +01:00
dependabot[bot] dcb258b70b Bump lodash from 4.17.15 to 4.17.21 (#7)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 11:10:06 +02:00
2020-03-09 23:57:43 +01:00
2020-03-09 19:02:59 +01:00
2020-03-09 19:02:59 +01:00
2020-03-09 19:02:59 +01:00
2020-03-09 22:00:34 +01:00
2020-03-09 23:57:43 +01:00
2020-03-09 19:02:59 +01:00
2020-03-09 19:02:59 +01:00
2020-11-11 14:56:19 +01:00
2020-03-09 19:02:59 +01:00

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-env command. 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
Description
Github Action to shorten the git SHA1 and make it accessible in outputs
Readme MIT 821 KiB
Languages
TypeScript 88.9%
JavaScript 11.1%