Skip to content

Commit 19bfabb

Browse files
committed
chore(ci): add v1.x naming convention to workflows
1 parent ac9c939 commit 19bfabb

7 files changed

Lines changed: 14 additions & 15 deletions

File tree

‎.github/workflows/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ point — write once, compose freely.
5252
Dispatch `release-prepare` with a bump and a channel, review the release PR it opens, merge it.
5353
`release-publish` then publishes the merged package.json version.
5454

55-
Publishing listens for pushes to `refactor`, not PR events. It looks up the pushed commit's
55+
Publishing listens for pushes to `refactor` and `v1.x`, not PR events. It looks up the pushed commit's
5656
associated PRs and proceeds only when that exact commit
5757
is the merge of a `release/v*` PR opened by `agentcore-devx-automation[bot]` (account ID
5858
`282717993`) from this repository into the target branch. Manually opened release PRs,

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Orchestrates all CI checks on PRs and pushes to main.
1+
# Orchestrates all CI checks on PRs and pushes to the v1 release branch.
22
name: CI
33
on:
4-
# TODO: remove refactor from below once this makes it to main.
54
push:
6-
branches: [main, refactor]
5+
branches: [main, refactor, v1.x]
76
pull_request:
8-
branches: [main, refactor]
7+
branches: [main, refactor, v1.x]
98
workflow_dispatch:
109

1110
concurrency:

‎.github/workflows/codeql.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: CodeQL
22

33
on:
44
push:
5-
branches: [main, refactor]
5+
branches: [main, refactor, v1.x]
66
pull_request:
7-
branches: [main, refactor, "feat/**"]
7+
branches: [main, refactor, v1.x, "feat/**"]
88

99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
11-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/refactor' && github.ref != 'refs/heads/v1.x' }}
1212

1313
jobs:
1414
analyze:

‎.github/workflows/e2e-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
ref:
2626
description: git reference (commit, branch, or tag) to build and test
2727
type: string
28-
default: refactor
28+
default: ""
2929
tags:
3030
description: Vitest tag expression, for example runtime || canary
3131
type: string

‎.github/workflows/pr-automation.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PR Automation
22

33
on:
44
pull_request_target:
5-
branches: [main, refactor, "feat/**"]
5+
branches: [main, refactor, v1.x, "feat/**"]
66
types: [opened, reopened, edited, synchronize, labeled]
77
workflow_dispatch:
88
inputs:
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
runner: codebuild
4848
pr_number: ${{ inputs.pr_number || format('{0}', github.event.pull_request.number) }}
49-
allowed_base_branches: '["main","refactor"]'
49+
allowed_base_branches: '["main","refactor","v1.x"]'
5050
secrets: inherit
5151

5252
harness-review:
@@ -113,7 +113,7 @@ jobs:
113113
fi
114114
115115
case "$base_ref" in
116-
main|refactor|feat/*) ;;
116+
main|refactor|v1.x|feat/*) ;;
117117
*)
118118
echo "::error::Unsupported base branch: $base_ref"
119119
exit 1

‎.github/workflows/prerelease.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: prerelease
22

33
on:
44
push:
5-
branches: [main, refactor]
5+
branches: [main, refactor, v1.x]
66
workflow_dispatch:
77

88
permissions:

‎.github/workflows/release-main-and-preview.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
# for a release whose merge push never ran.
99
workflow_dispatch:
1010
push:
11-
# TODO: switch to main once the refactor lands and this workflow is allowlisted there.
12-
branches: [refactor]
11+
# Keep both names until the v1.x runner allowlisting and refactor renaming are completed
12+
branches: [refactor, v1.x]
1313

1414
jobs:
1515
check-release:

0 commit comments

Comments
 (0)