From 88f5c3faf29fdf080d4396a720a9ce1d0d660456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kukuczka?= Date: Sun, 30 Mar 2025 11:30:06 +0200 Subject: [PATCH] add action --- action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..4f04f71 --- /dev/null +++ b/action.yml @@ -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" +