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

View file

@ -127,6 +127,8 @@ jobs:
name: Create GDB & gdbserver 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
@ -142,11 +144,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
if git rev-list "gdb-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "gdb-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for gdb-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else

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

View file

@ -92,6 +92,8 @@ jobs:
name: Create OpenSSH 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
@ -107,11 +109,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
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for openssh-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else

View file

@ -184,6 +184,8 @@ jobs:
name: Create socat Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64, build-ppc32, build-ppc64]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
@ -199,11 +201,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
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for socat-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else

View file

@ -128,6 +128,8 @@ jobs:
name: Create strace 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
@ -143,11 +145,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
if git rev-list "strace-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "strace-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for strace-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else

View file

@ -92,6 +92,8 @@ jobs:
name: Create tcpdump 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
@ -107,10 +109,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
if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}" >/dev/null;then
echo "Tag for tcpdump-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else