Skip to content

Limit Basic Build push trigger to main and v* tags - #188

Open
djkees wants to merge 1 commit into
nasa:mainfrom
djkees:ci-basic-build-push-main
Open

djkees wants to merge 1 commit into
nasa:mainfrom
djkees:ci-basic-build-push-main

Conversation

@djkees

@djkees djkees commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Basic Build runs twice for every push to a branch with an open PR, because both push and pull_request fire. This limits push to main and v* tags. Tracking issue: #175

Drafted with Claude's assistance

Changes

  • .github/workflows/basic_build.yml: push: now has branches: [main] and tags: ["v*"]. pull_request: and workflow_dispatch: are unchanged.
  • The v* tag trigger is kept so release-artifacts (guarded by startsWith(github.ref, 'refs/tags/v')) still runs on release tags.
  • Trade-off: a pushed branch without an open PR no longer builds automatically. It can be run with workflow_dispatch.

Testing

  • Parsed the edited YAML; the on: block has the expected triggers.
  • Pushed the branch to my fork: the push started no run, as intended. Ran Basic Build on it with workflow_dispatch: https://github.com/djkees/cea/actions/runs/43743942123
  • Every job passed except macos-arm64-gfortran, which was cancelled before any step ran with "The configuration 'macos-14-arm64-us-default' is not supported". That is the retired macos-14 runner image, not this change.
  • Read step-level output for the linux-x86_64-gfortran job only (configure, build, smoke test and C ABI check succeeded); the other legs I checked at job level.
  • release-artifacts was skipped, as expected on a non-tag run.
  • Not exercised: the tag trigger (needs a v* tag push).

Compatibility / Numerical behavior

  • No expected changes to numerical results
  • Expected changes (explain and provide validation)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant