Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakudyaA committed Jul 22, 2024
1 parent a9a6400 commit b9f9d41
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
build-activemq-docker-image:
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
Expand Down Expand Up @@ -53,7 +56,10 @@ jobs:
build-geoserver-docker-image:
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
strategy:
matrix:
geoserverMajorVersion:
Expand Down Expand Up @@ -129,7 +135,10 @@ jobs:
scan_image:
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
needs: [build-geoserver-docker-image, run-scenario-tests]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -159,7 +168,10 @@ jobs:
run-scenario-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
needs: [ build-geoserver-docker-image, build-activemq-docker-image]
strategy:
matrix:
Expand Down Expand Up @@ -202,7 +214,12 @@ jobs:
bash ./test.sh
push-internal-pr-images:
if: github.event_name == 'pull_request' && github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url && github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url &&
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
runs-on: ubuntu-latest
timeout-minutes: 20
needs: [ build-geoserver-docker-image, run-scenario-tests ]
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ on:
# contents: read
jobs:
deploy-image:
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
runs-on: ubuntu-latest
timeout-minutes: 15
env:
Expand Down

0 comments on commit b9f9d41

Please sign in to comment.