Skip to content

Commit

Permalink
fix: ci build conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
sgammon committed Aug 4, 2023
1 parent 7fe1a07 commit faa3c00
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,8 @@ jobs:
if: |
(
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/v3' ||
startsWith(github.ref, 'release/') ||
contains(github.event.pull_request.labels.*.name, 'ci:test-native') ||
contains(github.event.head_commit.message, 'ci:test-native') ||
startsWith(github.ref, 'refs/tags/v')
contains(github.event.head_commit.message, 'ci:test-native')
)
steps:
Expand Down Expand Up @@ -427,11 +424,9 @@ jobs:
if: |
(
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/v3' ||
startsWith(github.ref, 'release/') ||
contains(github.event.pull_request.labels.*.name, 'ci:build-cli') ||
contains(github.event.head_commit.message, 'ci:build-cli') ||
startsWith(github.ref, 'refs/tags/v')
contains(github.event.head_commit.message, 'ci:build-cli')
)
strategy:
Expand Down Expand Up @@ -548,11 +543,8 @@ jobs:
if: |
(
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/v3' ||
startsWith(github.ref, 'release/') ||
contains(github.event.pull_request.labels.*.name, 'ci:build-cli') ||
contains(github.event.head_commit.message, 'ci:build-cli') ||
startsWith(github.ref, 'refs/tags/v')
contains(github.event.head_commit.message, 'ci:build-cli')
)
strategy:
Expand Down Expand Up @@ -653,10 +645,8 @@ jobs:
if: |
(
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/v3' ||
contains(github.event.pull_request.labels.*.name, 'ci:build-img-jvm') ||
contains(github.event.head_commit.message, 'ci:build-img-jvm') ||
startsWith(github.ref, 'refs/tags/v')
contains(github.event.head_commit.message, 'ci:build-img-jvm')
)
permissions:
Expand Down Expand Up @@ -758,10 +748,8 @@ jobs:
if: |
(
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/v3' ||
contains(github.event.pull_request.labels.*.name, 'ci:build-img-native') ||
contains(github.event.head_commit.message, 'ci:build-img-native') ||
startsWith(github.ref, 'refs/tags/v')
contains(github.event.head_commit.message, 'ci:build-img-native')
)
permissions:
Expand Down Expand Up @@ -871,12 +859,10 @@ jobs:
needs: [gradle, tests-jvm, docker-jvm, docker-native]
if: |
(
github.ref == 'refs/heads/stable' ||
contains(github.event.pull_request.labels.*.name, 'ci:deploy-samples') ||
contains(github.event.pull_request.labels.*.name, 'ci:deploy') ||
contains(github.event.head_commit.message, 'ci:deploy-samples') ||
contains(github.event.head_commit.message, 'ci:deploy') ||
startsWith(github.ref, 'refs/tags/v')
contains(github.event.head_commit.message, 'ci:deploy')
)
strategy:
Expand Down

0 comments on commit faa3c00

Please sign in to comment.