From a82f5f206f7aeb18a48b7eb1aa6205d66d56e25b Mon Sep 17 00:00:00 2001
From: Erik Johnston <erikj@element.io>
Date: Mon, 2 Dec 2024 10:54:14 +0000
Subject: [PATCH] Fix release process to not create duplicate releases (#17970)

This is to work around
https://github.com/softprops/action-gh-release/issues/445

---------

Co-authored-by: Quentin Gliech <quenting@element.io>
---
 .github/workflows/release-artifacts.yml | 3 ++-
 changelog.d/17970.bugfix                | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 changelog.d/17970.bugfix

diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml
index c0aff79141..42a374fa19 100644
--- a/.github/workflows/release-artifacts.yml
+++ b/.github/workflows/release-artifacts.yml
@@ -212,7 +212,8 @@ jobs:
           mv debs*/* debs/
           tar -cvJf debs.tar.xz debs
       - name: Attach to release
-        uses: softprops/action-gh-release@v2
+        # Pinned to work around https://github.com/softprops/action-gh-release/issues/445
+        uses: softprops/action-gh-release@v2.0.5
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
diff --git a/changelog.d/17970.bugfix b/changelog.d/17970.bugfix
new file mode 100644
index 0000000000..835079de3f
--- /dev/null
+++ b/changelog.d/17970.bugfix
@@ -0,0 +1 @@
+Fix release process to not create duplicate releases.
-- 
GitLab