Skip to content

Commit f54ddbc

Browse files
Prevent duplicate GH releases being created during Synapse release process (#19096)
1 parent 7285129 commit f54ddbc

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/release-artifacts.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,11 @@ jobs:
200200
mv debs*/* debs/
201201
tar -cvJf debs.tar.xz debs
202202
- name: Attach to release
203-
# Pinned to work around https://github.com/softprops/action-gh-release/issues/445
204-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v0.1.15
205203
env:
206204
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207-
with:
208-
files: |
209-
Sdist/*
210-
Wheel*/*
211-
debs.tar.xz
212-
# if it's not already published, keep the release as a draft.
213-
draft: true
214-
# mark it as a prerelease if the tag contains 'rc'.
215-
prerelease: ${{ contains(github.ref, 'rc') }}
205+
run: |
206+
gh release upload "${{ github.ref_name }}" \
207+
Sdist/* \
208+
Wheel*/* \
209+
debs.tar.xz \
210+
--repo ${{ github.repository }}

changelog.d/19096.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prevent duplicate GitHub draft releases being created during the Synapse release process.

0 commit comments

Comments
 (0)