Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,30 @@ jobs:
with:
dotnet-version: |
6.0.x

- name: Debug
run: |
printenv

- name: Build with workaround
run: |
# Workaround for https://github.com/GitTools/GitVersion/issues/2838
# if [[ $GITHUB_REF_TYPE == tag ]]; then
# echo Unsetting GITHUB_REF
# unset GITHUB_REF
# fi
if [[ $GITHUB_REF_TYPE == tag ]]; then
echo Unsetting GITHUB_REF because of tag event
unset GITHUB_REF
fi
if [[ $GITHUB_REF == refs/pull/* ]]; then
echo Unsetting GITHUB_REF because of PR event
unset GITHUB_REF
fi
dotnet build src

- name: On Tag only
id: release
if: github.event_name == 'push' && github.ref_type == 'tag'
run: |
echo 'SemVer: ${{ env.GitVersion_SemVer }}'

- name: Debug
run: |
printenv