Updated tag checks

This commit is contained in:
takeshix 2021-04-19 16:38:56 +02:00
parent c0f10cbaa1
commit c9effeebc1
4 changed files with 20 additions and 16 deletions
.github/workflows

View file

@ -147,12 +147,13 @@ jobs:
- name: Tag Release
run: |
set +e
if [ $(git tag "nmap-v${{ needs.build-x86.outputs.version }}") ];then
if git rev-list "nmap-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true"
else
echo "Tag for version ${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
fi
- name: Create Release