Skip to content

Commit

Permalink
ensure jobs run on release branches (#1181) (#1182)
Browse files Browse the repository at this point in the history
* ensure jobs run on release branches

Signed-off-by: Bob Callaway <bcallaway@google.com>

* add quotes and use **

Signed-off-by: Bob Callaway <bcallaway@google.com>

Signed-off-by: Bob Callaway <bcallaway@google.com>

Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway authored Nov 7, 2022
1 parent 7215f5c commit ee4a959
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
push:
branches:
- main
- release-*
- 'release-**'
tags:
- '*'

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
name: CodeQL
on:
push:
branches: [ main ]
branches:
- main
- 'release-**'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches:
- main
- 'release-**'
schedule:
- cron: '45 10 * * 1'

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ name: CI

on:
push:
branches: [ main ]
branches:
- main
- 'release-**'
pull_request:
branches: [ main ]
branches:
- main
- 'release-**'

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [closed]
branches:
- main
- 'release-**'

jobs:
milestone:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/scorecard_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
# Weekly on Saturdays.
- cron: '30 1 * * 6'
push:
branches: [ main ]
branches:
- main
- 'release-**'

# Declare default permissions as read only.
permissions: read-all
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
push:
branches:
- main
- release-*
- 'release-**'
pull_request:

jobs:
Expand Down

0 comments on commit ee4a959

Please sign in to comment.