From e09c0cb8a299a52d323eae67f0a83db2b5b04dff Mon Sep 17 00:00:00 2001 From: Jules Ivanic Date: Mon, 12 Aug 2024 15:14:25 +1000 Subject: [PATCH] Fix Release Drafter CI job --- .github/workflows/ci.yml | 12 ------------ .github/workflows/release-drafter.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/release-drafter.yml 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 }}