Skip to content

Commit

Permalink
Fixing GHA check-release logic (#1681)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha authored Mar 8, 2024
1 parent 2a4b828 commit 19c2474
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1655,15 +1655,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get Git tag
- name: Check if release build
id: check_release
run: |
git fetch --tags
gitTag=$(git describe --tags --exact-match HEAD) || echo "NONE"
echo "Git branch/tag: ${GITHUB_REF}/${gitTag:-'none'}"
- name: Check if release build
id: check_release
run: |
if [[ -z "$gitTag" ]]; then
gitSha=$(git rev-parse HEAD | cut -c1-8)
echo "Building commit: ${{ needs.check-cache.outputs.version-label }} - ${gitSha}"
Expand Down

0 comments on commit 19c2474

Please sign in to comment.