diff --git a/.github/workflows/spack-ci.yml b/.github/workflows/spack-ci.yml index 760ca18e1..f6ff94c20 100644 --- a/.github/workflows/spack-ci.yml +++ b/.github/workflows/spack-ci.yml @@ -56,9 +56,11 @@ jobs: mepo develop GEOSgcm_GridComp GEOSgcm_App GMAO_Shared GEOS_Util mepo status + - name: Debug PR branch + run: echo "PR is coming from ${{ github.event.pull_request.head.ref }}" + - name: Update other branches - if: - "!contains('refs/heads/main,refs/heads/develop', github.ref)" + if: ${{ github.event.pull_request.head.ref != 'main' && github.event.pull_request.head.ref != 'develop' }} run: | mepo checkout-if-exists ${GITHUB_HEAD_REF} mepo status diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 71302eac4..2c8dd1f6d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -66,9 +66,11 @@ jobs: mepo develop GEOSgcm_GridComp GEOSgcm_App GMAO_Shared GEOS_Util mepo status + - name: Debug PR branch + run: echo "PR is coming from ${{ github.event.pull_request.head.ref }}" + - name: Update other branches - if: - "!contains('refs/heads/main,refs/heads/develop', github.ref)" + if: ${{ github.event.pull_request.head.ref != 'main' && github.event.pull_request.head.ref != 'develop' }} run: | mepo checkout-if-exists ${GITHUB_HEAD_REF} mepo status