From 26060d934fb1622adc7334623708766db165184e Mon Sep 17 00:00:00 2001 From: Tung Beier Date: Fri, 1 Mar 2024 18:50:16 +0100 Subject: [PATCH] ci(actions): adjust workflow triggers Add the `pull_request_target` trigger, so that pull requests from a fork will also start a build. Otherwise they can't be verified. A downside to this is that changes to the CI workflow can't be directly verified on a pull request anymore without some workarounds, because the CI will now run in the context of the base of the pull request. Closes #378. See also: - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b00b76a..f74f2fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,11 @@ name: Application build and test on: push: + branches: + - "main" + pull_request_target: + branches: + - "main" concurrency: group: ${{ github.ref }}-${{ github.workflow }} @@ -42,6 +47,7 @@ jobs: with: files_ignore: | **/*.md + docs/ .github/dependabot.yml .github/technolinator.yml