From 467aa579b6fc4c8ba35adc372700420ecf4535fe Mon Sep 17 00:00:00 2001 From: "nikita.smirnov" Date: Fri, 7 Jun 2024 17:43:55 +0400 Subject: [PATCH] Corrected github workflow --- .github/workflows/build-sanpshot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-sanpshot.yml b/.github/workflows/build-sanpshot.yml index dbb6173..947d1de 100644 --- a/.github/workflows/build-sanpshot.yml +++ b/.github/workflows/build-sanpshot.yml @@ -17,6 +17,10 @@ jobs: - name: Get branch name id: branch run: echo "branch_name=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + - name: Show git branch + run: echo ${{ steps.branch.outputs.branch_name }} + outputs: + branch_name: ${{ steps.branch.branch_name }} get-commit-hash: runs-on: ubuntu-20.04 steps: @@ -24,6 +28,10 @@ jobs: - name: Get SHA of the commit id: sha run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Show short git hash + run: echo ${{ steps.sha.outputs.sha_short }} + outputs: + branch_name: ${{ steps.sha.sha_short }} get-version: runs-on: ubuntu-20.04 needs: [ get-git-branch, get-commit-hash ]