Fixes pipelines
This commit is contained in:
parent
b322d1b36c
commit
2d029ca614
6 changed files with 41 additions and 11 deletions
7
.github/workflows/build-gdb.yml
vendored
7
.github/workflows/build-gdb.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/build-nmap.yml
vendored
8
.github/workflows/build-nmap.yml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/build-openssh.yml
vendored
7
.github/workflows/build-openssh.yml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/build-socat.yml
vendored
7
.github/workflows/build-socat.yml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/build-strace.yml
vendored
7
.github/workflows/build-strace.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/build-tcpdump.yml
vendored
8
.github/workflows/build-tcpdump.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue