Skip to content

Commit

Permalink
fix(ci): only block merge on freeze for stable branches
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Apr 30, 2024
1 parent 233d1ab commit 3cd614c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/block-merge-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ concurrency:
jobs:
block-merges-during-freeze:
name: Block merges during freezes

if: github.event.pull_request.draft == false

if: |
github.event.pull_request.draft == false
&& (
startsWith(github.base_ref, 'stable')
|| github.base_ref == 'main'
|| github.base_ref == 'master'
)
runs-on: ubuntu-latest-low

steps:
- name: Register server reference to fallback to master branch
run: |
Expand Down

0 comments on commit 3cd614c

Please sign in to comment.