Skip to content

Commit

Permalink
fix Actions run rules
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <[email protected]>
  • Loading branch information
deitch committed Oct 29, 2023
1 parent 615f3fc commit 5ef4e6e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
---
name: PR build
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
pull_request:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
packages:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ name: "CodeQL"
on: # yamllint disable-line rule:truthy
push:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "main"
pull_request:
# The branches below must be a subset of the branches above
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
schedule:
- cron: '42 6 * * 2'
- "main"

jobs:
analyze:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ name: Publish
on: # yamllint disable-line rule:truthy
push:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "main"
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-lts"

jobs:
packages:
publish:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ name: Unit tests
on: # yamllint disable-line rule:truthy
push:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "main"
pull_request:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "main"

jobs:
test:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/yetus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ name: Apache Yetus
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "main"

jobs:
yetus:
Expand Down

0 comments on commit 5ef4e6e

Please sign in to comment.