Thanks to visit codestin.com
Credit goes to github.com

Skip to content

divergent3d/short-sha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Short SHA Action

A dead-simple GitHub Action to quickly get the Short SHA in your workflow.

GitHub Issues or Pull Requests CI Lint License Code Style

Usage

name: Example Workflow
on: push
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - id: short-sha
        uses: hudsonm62/short-sha@v1
      - run: echo "${{ steps.short-sha.outputs.sha }}"

Inputs

Input Default Description
commit-sha ${{ github.sha }} Full length, 40 character SHA-1
length 7 Length of the SHA to cut

Outputs

Output Description
sha The short SHA

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 58.1%
  • Makefile 41.9%