From 960900d769154ce80018d1c675fa585aafea8c38 Mon Sep 17 00:00:00 2001 From: Christian Kadner Date: Wed, 11 Jan 2023 08:43:38 -0800 Subject: [PATCH] chore: Run GitHub actions on `release-*` branches (#310) #### Motivation When we create a new release we need the GitHub actions to run for - Lint - Unit test - FVT - Image build and push #### Modifications Update the Github workflow definitions to include any `release-..` branches. #### Result The GitHub action run on PR and pushed to the release branch. As can be seen in this PR targeting the `release-0.10` branch: https://github.com/kserve/modelmesh-serving/pull/298 --- **Note**: same (intended) changes as in PR #299 -- but without the merge commits /cc @njhill @rafvasq /assign @njhill Signed-off-by: Christian Kadner --- .github/workflows/build-and-push.yml | 4 +++- .github/workflows/lint.yml | 4 +++- .github/workflows/run-fvt.yml | 4 +++- .github/workflows/unit-test.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 4014836b..74a38572 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -2,7 +2,9 @@ name: Build and Push on: push: - branches: [main] + branches: + - 'main' + - 'release-*' paths-ignore: - 'docs/**' - '**.md' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 37705ff9..8fcd48bc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,9 @@ name: Lint on: pull_request: - branches: [main] + branches: + - 'main' + - 'release-*' paths-ignore: - '.github/**' - '.tekton/**' diff --git a/.github/workflows/run-fvt.yml b/.github/workflows/run-fvt.yml index bae0c6a8..65f754bb 100644 --- a/.github/workflows/run-fvt.yml +++ b/.github/workflows/run-fvt.yml @@ -2,7 +2,9 @@ name: FVTs on: pull_request: - branches: [main] + branches: + - 'main' + - 'release-*' paths: - '**' - '!.github/**' diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index f2ae3869..d79eb385 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -2,7 +2,9 @@ name: Unit Test on: pull_request: - branches: [main] + branches: + - 'main' + - 'release-*' paths-ignore: - 'docs/**' - '**.md'