Skip to content

Commit 52edece

Browse files
wpbonelliclaude
andcommitted
ci: skip developmode tests on PRs targeting master
github.ref_name is '<n>/merge' on pull_request events, so release PRs into master ran developmode tests against a release (IDEVELOPMODE=0) build and failed. Also check github.base_ref. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7f69b52 commit 52edece

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ jobs:
304304
- name: Test MF6
305305
working-directory: modflow6
306306
run: |
307-
if [ "${{ github.ref_name }}" == "master" ]; then
307+
if [[ "${{ github.ref_name }}" == "master" || "${{ github.base_ref }}" == "master" ]]; then
308308
pixi run autotest -m "not slow and not regression and not developmode"
309309
else
310310
pixi run autotest --smoke
@@ -501,7 +501,7 @@ jobs:
501501
id: set_markers
502502
run: |
503503
markers=""
504-
if [[ "${{ github.ref_name }}" == "master" ]]; then
504+
if [[ "${{ github.ref_name }}" == "master" || "${{ github.base_ref }}" == "master" ]]; then
505505
markers="not large and not developmode"
506506
else
507507
markers="not large"
@@ -689,7 +689,7 @@ jobs:
689689
id: set_markers
690690
run: |
691691
markers=""
692-
if [[ "${{ github.ref_name }}" == "master" ]]; then
692+
if [[ "${{ github.ref_name }}" == "master" || "${{ github.base_ref }}" == "master" ]]; then
693693
markers="not large and not developmode"
694694
else
695695
markers="not large"

0 commit comments

Comments
 (0)