Skip to content

ci: skip CI jobs for release-commit pushes - #2923

Open
MaxonT wants to merge 1 commit into
aws:v1.xfrom
MaxonT:contrib/2392-auto
Open

MaxonT wants to merge 1 commit into
aws:v1.xfrom
MaxonT:contrib/2392-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 25, 2026

Copy link
Copy Markdown

Hi, this adds a condition so the CI workflows don't run on release commits in agentcore-cli. The issue title was my only guide, so the exact commit match may need adjusting.

Merging a release PR pushes a chore(release): commit to v1.x, which starts both CI and the release-publish workflow. Both call verify.yml, so Linux and Windows verification runs twice for the same commit.

This adds a condition to the verify and e2e jobs in .github/workflows/ci.yml: on push events they are skipped when the head commit message starts with chore(release):. Pull request and workflow_dispatch runs are unchanged, and release-main-and-preview.yml keeps its own verify job before publishing. As the issue notes, GitHub still records a skipped CI run for these pushes, and the macOS and E2E checks are skipped on them too.

Verified: the file still parses as YAML and the diff is the two if: lines only. Not verified: I did not run the workflow on GitHub, and actionlint was not available here, so the expression behavior rests on the documented semantics of github.event.head_commit.message and startsWith. The check is on the commit message only, as the issue describes; release-publish itself identifies releases through the merged PR's author and branch, so I did not copy that stricter check into CI.

Refs #2392

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
@MaxonT
MaxonT requested a review from a team November 25, 2026 11:17
@github-actions github-actions Bot added the size/xs PR size: XS label Nov 25, 2026

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

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant