From b9d20ee2ac821fd3136107710a46f3d17963068d Mon Sep 17 00:00:00 2001 From: rmueller Date: Wed, 17 Apr 2024 13:56:48 +0200 Subject: [PATCH] Changed trigger --- .github/workflows/build-for-development.yml | 3 +++ .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-for-development.yml b/.github/workflows/build-for-development.yml index f8e9f7e..b0f974b 100644 --- a/.github/workflows/build-for-development.yml +++ b/.github/workflows/build-for-development.yml @@ -3,6 +3,9 @@ name: Build for development on: push: branches: [ 'feature/**', 'dependabot/**' ] + pull_request_target: + branches: [ develop, main ] + types: [ ready_for_review, closed ] jobs: test_and_scan: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97bdddd..dd7bea1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: RELEASE_VERSION: ${{ needs.read_version.outputs.RELEASE_VERSION }} GH_TOKEN: ${{ github.token }} run: | - PR_URL=`gh pr create -B develop --title "Merge release branch '${RELEASE_VERSION}' back to develop" --body "Merge release branch '${RELEASE_VERSION}' back to develop"` + PR_URL=`gh pr create --draft -B develop --title "Merge release branch '${RELEASE_VERSION}' back to develop" --body "Merge release branch '${RELEASE_VERSION}' back to develop"` echo $PR_URL release: @@ -108,5 +108,5 @@ jobs: RELEASE_VERSION: ${{ needs.read_version.outputs.RELEASE_VERSION }} GH_TOKEN: ${{ github.token }} run: | - PR_URL=`gh pr create -B main --title "Merge release branch '${RELEASE_VERSION}'" --body "Merge release branch '${RELEASE_VERSION}'"` + PR_URL=`gh pr create --draft -B main --title "Merge release branch '${RELEASE_VERSION}'" --body "Merge release branch '${RELEASE_VERSION}'"` echo $PR_URL