Skip to content

Commit

Permalink
comment out the "if" so I can test in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 15, 2023
1 parent 2009937 commit 9fe38c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
# If the last release is a pre-release, increment the pre-release number, so v1.2.3-pre4 becomes v1.2.3-pre5.
# If the last release is an official release, create a new pre-release, so v1.2.3 becomes v1.2.3-pre1.
- name: Increment pre-release tag
if: ${{ github.event_name == 'push' }}
# if: ${{ github.event_name == 'push' }}
id: new-tag # Output: ${{ steps.new-tag.outputs.newtag }}
run: |
CURRENT_TAG=$(git tag | sort --version-sort | tail -n1)
Expand All @@ -162,10 +162,10 @@ jobs:
fi
done
# if git rev-parse $NEW_TAG >/dev/null 2>&1; then
# echo "Tag already exists. Exiting."
# exit 1
# fi
if git rev-parse $NEW_TAG >/dev/null 2>&1; then
echo "Tag already exists. Exiting."
exit 1
fi
echo "::set-output name=newtag::$NEW_TAG"
else
echo "Invalid tag format"
Expand Down

0 comments on commit 9fe38c2

Please sign in to comment.