Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasOnatsu committed Nov 11, 2024
1 parent 81d7b46 commit c8dbb38
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
- name: Generate build version
shell: bash
run: |
# Default to version based on GITHUB_SHA
buildver="${{ github.sha }}"
buildver="git-${buildver:0:7}"
if [[ "${{ github.ref_type }}" == "tag" ]]; then
buildver="${{ github.ref_name }}"
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
Expand All @@ -41,7 +37,8 @@ jobs:
buildver="$(git describe --tags "${{ github.ref }}")"
else
# No reachable parent tag on branch
buildver="${{ github.ref_name }}-${{ github.sha:0:7 }}"
hash="${{ github.sha }}"
buildver="${{ github.ref_name }}-${hash:0:7}"
fi
fi
Expand Down

0 comments on commit c8dbb38

Please sign in to comment.