Skip to content

Commit 48b3eca

Browse files
committed
Delete existing release before re-release
1 parent 4a778d8 commit 48b3eca

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build-glibc-and-release.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ on:
1616
type: boolean
1717
default: false
1818

19-
# concurrency:
20-
# group: build-glibc-and-release
21-
# cancel-in-progress: false
22-
2319
jobs:
2420
build:
2521
runs-on: "ubuntu-latest"
@@ -40,6 +36,14 @@ jobs:
4036
wget -q -O COPYING 'https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=COPYING;hb=HEAD'
4137
wget -q -O LICENSES 'https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=LICENSES;hb=HEAD'
4238
39+
- name: Delete existing release
40+
uses: dev-drprasad/[email protected]
41+
with:
42+
delete_release: true
43+
tag_name: ${{ inputs.dist-base }}-${{ inputs.dist-tag }}
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
4347
- name: Upload artifacts
4448
uses: actions/upload-artifact@v2
4549
with:
@@ -51,7 +55,8 @@ jobs:
5155
with:
5256
tag_name: ${{ inputs.dist-base }}-${{ inputs.dist-tag }}
5357
name: "Current build for: ${{ inputs.dist-base }}-${{ inputs.dist-tag }}"
54-
prerelease: false
58+
body: ""
59+
prerelease: ${{ inputs.prerelease }}
5560
draft: false
5661
generate_release_notes: false
5762
files: |

0 commit comments

Comments
 (0)