diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index f0da923..48ee21a 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -22,7 +22,6 @@ change-template: '- $TITLE @$AUTHOR (#$NUMBER)' change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. exclude-labels: - 'skip-changelog' - - 'automerge' sort-by: 'title' version-resolver: major: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 96f77d1..3845bd0 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,21 +3,25 @@ name: Release Drafter on: push: branches: - - master + - main workflow_dispatch: - + pull_request: + types: [opened, reopened, synchronize] + permissions: contents: read jobs: update_release_draft: + permissions: + contents: write + pull-requests: write runs-on: ubuntu-latest steps: - name: Harden Runner uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 with: egress-policy: audit - - uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0 env: - GITHUB_TOKEN: ${{ secrets.GRADLE_UPDATE_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}