diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d3a10dd5f..8357bf12b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,18 +207,6 @@ jobs: PGP_SECRET: ${{ secrets.PGP_SECRET }} run: sbt ci-release - update_release_draft: - name: Release Drafter - if: ${{ github.base_ref == 'main' }} - strategy: - matrix: - os: [ubuntu-latest] - scala: [2.13.10] - java: [temurin@8] - runs-on: ${{ matrix.os }} - steps: - - uses: release-drafter/release-drafter@v5 - unsafeRunScoverage: name: Unsafe Scoverage strategy: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000000..bcbc1f740d --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,26 @@ +name: Release Drafter + +on: + push: + branches: + - main + + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + runs-on: ubuntu-latest + 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 + steps: + - uses: release-drafter/release-drafter@v6.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}