From d6d840a477098107992550130ecf9b1a70d49a62 Mon Sep 17 00:00:00 2001 From: "Jonas I. Liechti" Date: Mon, 13 May 2024 08:34:59 +0200 Subject: [PATCH] fix: do not run on release- branches --- .github/workflows/development_run.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/development_run.yml b/.github/workflows/development_run.yml index 44b175fb..e23a1510 100644 --- a/.github/workflows/development_run.yml +++ b/.github/workflows/development_run.yml @@ -4,11 +4,17 @@ name: Runs on non-release pull requests on: pull_request: - branches-ignore: - - "release-[0-9]+.[0-9]+.[0-9]+" + branches: + - "*" # run for any pull request (see 1st job if condition for head name selection) jobs: + should-run: + if: ${{ (github.ref != 'refs/heads/main') && (!startsWith(github.head_ref, 'release-')}} + runs-on: ubuntu-latest + run: | + echo: "Running development tests for branch ${{ github.head_ref }}" + get-target-container: - if: github.ref != 'refs/heads/main' + needs: should-run runs-on: ubuntu-22.04 outputs: CONTAINER: ${{ steps.container.outputs.container }} @@ -23,8 +29,8 @@ jobs: else echo "container=debian/clang/devel" >> $GITHUB_OUTPUT fi - get-changes: + needs: should-run runs-on: ubuntu-latest outputs: run_all: ${{ steps.changed_files.outputs.changed_src }}