Files
generate-short-sha/action.yml
Radosław Kukuczka 88f5c3faf2 add action
2025-03-30 11:30:06 +02:00

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"