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 dc32522
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 28 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
12 changes: 3 additions & 9 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 All @@ -33,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['go', 'python']
language: ['go']

steps:
- name: Checkout repository
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
2 changes: 0 additions & 2 deletions .github/workflows/request_codeowners_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event.pull_request.commits + 1 }}

- name: Auto request review
env:
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 dc32522

Please sign in to comment.