Files
generate-short-sha/action.yml
Radosław Kukuczka 17aabc5918 remove whitespace
2025-03-30 13:35:55 +02:00

13 lines
350 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"