From 243ce684d57a213101a11c8aae0ad1ace846517a Mon Sep 17 00:00:00 2001 From: Sunyoung Yoo <17974113+YooSunYoung@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:38:26 +0200 Subject: [PATCH 1/6] Set environment variable in the draft release job gh release view also needs GH_TOKEN... --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ca996e86..f1d609887 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,10 +107,9 @@ jobs: contents: write env: TAG: ${{ needs.determine-package.outputs.package }}/${{ needs.determine-package.outputs.version }} + GH_TOKEN: ${{ github.token }} steps: - name: Draft a release. - env: - GH_TOKEN: ${{ github.token }} run: gh release create ${TAG} --draft --title ${TAG} # Default title is not always the tag name. continue-on-error: true # Release create can fail if there is an existing release. - name: Check the release. From 629fd682014167a0c9966d7f8a540a5429f18998 Mon Sep 17 00:00:00 2001 From: Sunyoung Yoo <17974113+YooSunYoung@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:39:13 +0200 Subject: [PATCH 2/6] Update draft-release dependencies in workflow --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1d609887..1480bfbe0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,7 +101,7 @@ jobs: draft-release: name: Draft a release or/and check the release - needs: [ determine-package, publish ] + needs: [ determine-package ] runs-on: ubuntu-slim permissions: contents: write From 59043662629020944a2000f5ad9f4c5bea97a18d Mon Sep 17 00:00:00 2001 From: Sunyoung Yoo <17974113+YooSunYoung@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:40:35 +0200 Subject: [PATCH 3/6] Remove full changelog link from release notes --- tools/collect-release-notes.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/collect-release-notes.py b/tools/collect-release-notes.py index 08f633e2b..572ebe097 100644 --- a/tools/collect-release-notes.py +++ b/tools/collect-release-notes.py @@ -116,14 +116,7 @@ def has_label(label: str, pr: PRDescription) -> bool: [f"* {relevant_log}" for relevant_log in maybe_relevant_logs] ) - release_note.extend( - [ - '', - '', - f"**Full Changelog**: https://github.com/scipp/ess/compare/{compare_tag}...{cur_tag}", - '', - ] - ) + release_note.extend(['']) if hasattr(args, 'output_file_path') and args.output_file_path: output_file_path = pathlib.Path(args.output_file_path) From 23e8567c6bbf4613eca4a0712b3570879a0bf9e6 Mon Sep 17 00:00:00 2001 From: Sunyoung Yoo <17974113+YooSunYoung@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:42:32 +0200 Subject: [PATCH 4/6] Remove empty string from release notes --- tools/collect-release-notes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/collect-release-notes.py b/tools/collect-release-notes.py index 572ebe097..c00e79fba 100644 --- a/tools/collect-release-notes.py +++ b/tools/collect-release-notes.py @@ -116,8 +116,6 @@ def has_label(label: str, pr: PRDescription) -> bool: [f"* {relevant_log}" for relevant_log in maybe_relevant_logs] ) - release_note.extend(['']) - if hasattr(args, 'output_file_path') and args.output_file_path: output_file_path = pathlib.Path(args.output_file_path) else: From fe64151b5ca2c397e7b27197570e277b416cc94e Mon Sep 17 00:00:00 2001 From: Sunyoung Yoo <17974113+YooSunYoung@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:53:48 +0200 Subject: [PATCH 5/6] Checkout before drafting a release. --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1480bfbe0..236fb21da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,6 +109,7 @@ jobs: TAG: ${{ needs.determine-package.outputs.package }}/${{ needs.determine-package.outputs.version }} GH_TOKEN: ${{ github.token }} steps: + - uses: actions/checkout@v6 - name: Draft a release. run: gh release create ${TAG} --draft --title ${TAG} # Default title is not always the tag name. continue-on-error: true # Release create can fail if there is an existing release. From 64422fc2face0b1f5664a46ac207a6acf1e1eb14 Mon Sep 17 00:00:00 2001 From: Sunyoung Yoo <17974113+YooSunYoung@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:55:30 +0200 Subject: [PATCH 6/6] Add condition to draft-release job for tag events --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 236fb21da..b9df0da64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,6 +103,7 @@ jobs: name: Draft a release or/and check the release needs: [ determine-package ] runs-on: ubuntu-slim + if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'workflow_dispatch' }} permissions: contents: write env: