add action
This commit is contained in:
14
action.yml
Normal file
14
action.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
name: 'Generate Short SHA'
|
||||
description: 'Generates a short version of the commit SHA'
|
||||
outputs:
|
||||
short:
|
||||
description: 'Short SHA'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
|
||||
echo "short=$SHORT_SHA" >> $GITHUB_OUTPUT
|
||||
echo "DEBUG: Short SHA = $SHORT_SHA"
|
||||
|
||||
Reference in New Issue
Block a user