15 lines
352 B
YAML
15 lines
352 B
YAML
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"
|
|
|