From 138abcbfd5058a157f3323a8ecf2175430dd28ce Mon Sep 17 00:00:00 2001 From: ludeeus Date: Tue, 28 May 2024 11:40:46 +0000 Subject: [PATCH] Fix release drafter --- .github/release-drafter.yml | 8 ++++++++ .github/workflows/release-drafter.yml | 11 ++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 27bcee3fb..eb4ddddc5 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,11 @@ +change-template: "- #$NUMBER $TITLE @$AUTHOR" +sort-direction: ascending + +categories: + - title: "Dependency Updates" + label: "dependencies" + collapse-after: 1 + template: | ## What’s Changed diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1a2d27eca..774f24e5c 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -2,18 +2,23 @@ name: Release Drafter on: push: - branches: ["main"] + branches: + - main + +permissions: {} jobs: update_release_draft: runs-on: ubuntu-latest + permissions: + contents: write steps: - id: version run: | version=$(date --utc '+%Y%m%d%H%M%S') - echo "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT - - uses: release-drafter/release-drafter@v6 + - uses: release-drafter/release-drafter@v6.0.0 with: tag: ${{ steps.version.outputs.version }} name: ${{ steps.version.outputs.version }}