Skip to content

Commit

Permalink
Corrected github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Jun 7, 2024
1 parent d84ad3e commit 467aa57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-sanpshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@ 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:
- uses: actions/checkout@v4
- 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 ]
Expand Down

0 comments on commit 467aa57

Please sign in to comment.