mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
ci: standardize release branch pattern to release-X.Y.x (#3999)
Standardize CI workflows to use `release-X.Y.x` branch pattern instead of multiple numeric variants. That's the pattern we are settling on. See https://github.com/llamastack/llama-stack-ops/pull/20 for reference.
This commit is contained in:
parent
e8cd8508b5
commit
c396de57a4
7 changed files with 12 additions and 34 deletions
|
|
@ -47,7 +47,7 @@ runs:
|
||||||
# Check if PR is targeting a release branch
|
# Check if PR is targeting a release branch
|
||||||
TARGET_BRANCH="${{ github.base_ref }}"
|
TARGET_BRANCH="${{ github.base_ref }}"
|
||||||
|
|
||||||
if [[ "$TARGET_BRANCH" =~ ^release-([0-9]+\.){1,3}[0-9]+$ ]]; then
|
if [[ "$TARGET_BRANCH" =~ ^release-[0-9]+\.[0-9]+\.x$ ]]; then
|
||||||
echo "PR targets release branch: $TARGET_BRANCH"
|
echo "PR targets release branch: $TARGET_BRANCH"
|
||||||
echo "Checking if matching branch exists in llama-stack-client-python..."
|
echo "Checking if matching branch exists in llama-stack-client-python..."
|
||||||
|
|
||||||
|
|
|
||||||
8
.github/workflows/integration-auth-tests.yml
vendored
8
.github/workflows/integration-auth-tests.yml
vendored
|
|
@ -6,15 +6,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
paths:
|
paths:
|
||||||
- 'distributions/**'
|
- 'distributions/**'
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/providers/utils/sqlstore/**'
|
- 'src/llama_stack/providers/utils/sqlstore/**'
|
||||||
- 'tests/integration/sqlstore/**'
|
- 'tests/integration/sqlstore/**'
|
||||||
|
|
|
||||||
8
.github/workflows/integration-tests.yml
vendored
8
.github/workflows/integration-tests.yml
vendored
|
|
@ -6,15 +6,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
- '!src/llama_stack/ui/**'
|
- '!src/llama_stack/ui/**'
|
||||||
|
|
|
||||||
4
.github/workflows/pre-commit.yml
vendored
4
.github/workflows/pre-commit.yml
vendored
|
|
@ -7,9 +7,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
|
||||||
|
|
|
||||||
8
.github/workflows/unit-tests.yml
vendored
8
.github/workflows/unit-tests.yml
vendored
|
|
@ -6,15 +6,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
- 'release-[0-9]+.[0-9]+.x'
|
||||||
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- 'release-[0-9]+.[0-9]+'
|
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
- '!src/llama_stack/ui/**'
|
- '!src/llama_stack/ui/**'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue