Updated Nmap release creation
This commit is contained in:
parent
c613b77803
commit
1431466df0
1 changed files with 3 additions and 1 deletions
4
.github/workflows/build-nmap.yml
vendored
4
.github/workflows/build-nmap.yml
vendored
|
@ -147,10 +147,12 @@ jobs:
|
||||||
- name: Tag Release
|
- name: Tag Release
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "nmap-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
git fetch --quiet --prune --unshallow --tags
|
||||||
|
if [[ $(git tag -l | grep nmap-v${{ needs.build-x86.outputs.version }} | wc -l) -gt 0 ]]; then
|
||||||
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
||||||
echo ::set-output name=NEW_RELEASE::"false"
|
echo ::set-output name=NEW_RELEASE::"false"
|
||||||
else
|
else
|
||||||
|
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} missing. Starting release creation."
|
||||||
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
|
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
|
git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
|
||||||
echo ::set-output name=NEW_RELEASE::"true"
|
echo ::set-output name=NEW_RELEASE::"true"
|
||||||
|
|
Loading…
Reference in a new issue