Skip to content

Commit

Permalink
chore: Run GitHub actions on release-* branches (#310)
Browse files Browse the repository at this point in the history
#### 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:
#298

---

**Note**: same (intended) changes as in PR #299 -- but without the merge commits

/cc @njhill @rafvasq 
/assign @njhill 

Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
  • Loading branch information
ckadner authored Jan 11, 2023
1 parent fbd8c62 commit 960900d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Build and Push

on:
push:
branches: [main]
branches:
- 'main'
- 'release-*'
paths-ignore:
- 'docs/**'
- '**.md'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Lint

on:
pull_request:
branches: [main]
branches:
- 'main'
- 'release-*'
paths-ignore:
- '.github/**'
- '.tekton/**'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run-fvt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: FVTs

on:
pull_request:
branches: [main]
branches:
- 'main'
- 'release-*'
paths:
- '**'
- '!.github/**'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Unit Test

on:
pull_request:
branches: [main]
branches:
- 'main'
- 'release-*'
paths-ignore:
- 'docs/**'
- '**.md'
Expand Down

0 comments on commit 960900d

Please sign in to comment.