From 6d2fc047e6a6e184a0878d1ddf62c938e040fd7a Mon Sep 17 00:00:00 2001 From: Artem Bortnikov <82099337+aobort@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:31:43 +0300 Subject: [PATCH] add pull_request_target as release-drafter workflow trigger (#128) --------- Signed-off-by: Artem Bortnikov --- .github/release-drafter.yml | 1 + .github/workflows/release-drafter.yml | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index b782607b..1cf7b3c0 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -51,6 +51,7 @@ autolabeler: - label: 'dependencies' branch: - '/deps\/.+/' + - '/renovate\/.+/' - label: 'documentation' files: - '**/*.md' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 4901e518..6f0155dd 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -2,14 +2,11 @@ name: Release Drafter on: workflow_dispatch: + pull_request_target: push: branches: - main -permissions: - contents: write - pull-requests: write - jobs: update_release_draft: runs-on: ubuntu-22.04 @@ -18,5 +15,6 @@ jobs: with: disable-releaser: github.ref != 'refs/heads/main' config-name: release-drafter.yml + commitish: main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}