From 15aef82f4c1ce2c38fc85d826f89910002fafe41 Mon Sep 17 00:00:00 2001 From: unusualpseudo Date: Fri, 2 Aug 2024 00:21:00 +0200 Subject: [PATCH] fix(ci): release drafter job Signed-off-by: unusualpseudo --- .github/workflows/release-drafter.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml index 308ec5f..5acae68 100644 --- a/.github/workflows/release-drafter.yaml +++ b/.github/workflows/release-drafter.yaml @@ -2,13 +2,20 @@ name: "Draft Release" on: - workflow_dispatch: push: - branches: ["main"] + branches: + - main + pull_request: + types: [opened, reopened, synchronize] +permissions: + contents: read jobs: update_release_draft: + permissions: + contents: write + pull-requests: write runs-on: ubuntu-22.04 steps: - name: Generate token @@ -21,6 +28,8 @@ jobs: - name: Prepare release draft uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0 with: + commitish: main config-name: release-drafter.yaml + disable-autolabeler: false env: GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"