Skip to content

Commit

Permalink
[skiprelease] add release option (#675)
Browse files Browse the repository at this point in the history
* try to skip release based on body or title with /skiprelease or [skiprelease] respectively

* wip

* change to skip release
  • Loading branch information
NyakudyaA authored Jul 18, 2024
1 parent f715a8a commit 1e598ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
build-activemq-docker-image:
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.actor != 'dependabot[bot]'
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 +53,7 @@ jobs:
build-geoserver-docker-image:
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.actor != 'dependabot[bot]'
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
strategy:
matrix:
geoserverMajorVersion:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
scan_image:
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.actor != 'dependabot[bot]'
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 @@ -157,7 +157,7 @@ jobs:
run-scenario-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.actor != 'dependabot[bot]'
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 @@ -200,7 +200,7 @@ 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]'
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
# contents: read
jobs:
deploy-image:
if: github.actor != 'dependabot[bot]'
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
2 changes: 1 addition & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function install_plugin() {
EXT=$2

if [[ -f "${DATA_PATH}/${EXT}.zip" ]]; then
unzip "${DATA_PATH}/${EXT}.zip" -d /tmp/gs_plugin
unzip -qq "${DATA_PATH}/${EXT}.zip" -d /tmp/gs_plugin
echo -e "\e[32m Enabling ${EXT} for GeoServer \033[0m"
GEOSERVER_INSTALL_DIR="$(detect_install_dir)"
cp -r -u -p /tmp/gs_plugin/*.jar "${GEOSERVER_INSTALL_DIR}/webapps/${GEOSERVER_CONTEXT_ROOT}/WEB-INF/lib/"
Expand Down

0 comments on commit 1e598ab

Please sign in to comment.