From c1e3d6ba0389d226146c63057f017ee7d9275e24 Mon Sep 17 00:00:00 2001 From: Mads Opheim <71336041+madsop-nav@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:48:30 +0200 Subject: [PATCH] =?UTF-8?q?Release-drafter-jobben=20feilar=20no=20p=C3=A5?= =?UTF-8?q?=20grunn=20av=20manglande=20tilgangar,=20s=C3=A5=20rettar=20opp?= =?UTF-8?q?=20det=20(#244)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-drafter.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 }}