From 2f2525eb9fa53be637cd8fabb5a9a0592e373962 Mon Sep 17 00:00:00 2001 From: Stephanie Buadu <47737608+acn-sbuad@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:34:21 +0200 Subject: [PATCH] allow workflow to run on dispatch (#478) --- .github/workflows/build-and-analyze.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-analyze.yml b/.github/workflows/build-and-analyze.yml index ef6dd606..dc2c04c5 100644 --- a/.github/workflows/build-and-analyze.yml +++ b/.github/workflows/build-and-analyze.yml @@ -18,7 +18,7 @@ on: jobs: build-test-analyze: name: Build, test & analyze - if: ((github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) || github.event_name == 'push') && github.repository_owner == 'Altinn' && github.actor != 'dependabot[bot]' + if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)) runs-on: ubuntu-latest services: postgres: