Skip to content

Commit

Permalink
fix: do not run on release- branches
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 13, 2024
1 parent 8a8b2df commit d6d840a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/development_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit d6d840a

Please sign in to comment.