Prevent duplicate GH releases being created during Synapse release process (#19096)
This commit is contained in:
parent
728512918e
commit
f54ddbcace
17
.github/workflows/release-artifacts.yml
vendored
17
.github/workflows/release-artifacts.yml
vendored
@ -200,16 +200,11 @@ jobs:
|
||||
mv debs*/* debs/
|
||||
tar -cvJf debs.tar.xz debs
|
||||
- name: Attach to release
|
||||
# Pinned to work around https://github.com/softprops/action-gh-release/issues/445
|
||||
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v0.1.15
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
files: |
|
||||
Sdist/*
|
||||
Wheel*/*
|
||||
debs.tar.xz
|
||||
# if it's not already published, keep the release as a draft.
|
||||
draft: true
|
||||
# mark it as a prerelease if the tag contains 'rc'.
|
||||
prerelease: ${{ contains(github.ref, 'rc') }}
|
||||
run: |
|
||||
gh release upload "${{ github.ref_name }}" \
|
||||
Sdist/* \
|
||||
Wheel*/* \
|
||||
debs.tar.xz \
|
||||
--repo ${{ github.repository }}
|
||||
|
||||
1
changelog.d/19096.misc
Normal file
1
changelog.d/19096.misc
Normal file
@ -0,0 +1 @@
|
||||
Prevent duplicate GitHub draft releases being created during the Synapse release process.
|
||||
Loading…
Reference in New Issue
Block a user