add action

This commit is contained in:
Radosław Kukuczka
2025-03-30 11:30:06 +02:00
parent c880724945
commit 88f5c3faf2

14
action.yml Normal file
View 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"