diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 0eebaad..872544a 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,11 +7,19 @@ on: - main pull_request: types: [opened, reopened, synchronize] - + jobs: update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + # write permission is required for autolabeler + # otherwise, read permission is required at least + pull-requests: write runs-on: ubuntu-latest steps: - uses: release-drafter/release-drafter@v6.0.0 + with: + commitish: ${{ github.head_ref || github.ref_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}