Fixes pipelines

This commit is contained in:
Adam Chovanec 2024-03-22 15:13:26 +01:00
parent b322d1b36c
commit 2d029ca614
6 changed files with 41 additions and 11 deletions
.github/workflows

View file

@ -129,6 +129,8 @@ jobs:
name: Create Nmap Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
@ -144,12 +146,14 @@ jobs:
- name: List Artifacts
run: ls -laR /tmp/releases
- name: Fetch tags
run: git fetch --tags --prune --quiet
- name: Tag Release
id: tag_release
run: |
set +e
git fetch --quiet --prune --tags
if [[ $(git tag -l | grep nmap-v${{ needs.build-x86.outputs.version }} | wc -l) -gt 0 ]]; 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 "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else