From b447255fb0ffd1a146086871d6037d996bdddce6 Mon Sep 17 00:00:00 2001 From: Mads Opheim Date: Thu, 26 Sep 2024 14:26:15 +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?= 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 }}