Skip to content

Commit 1e598ab

Browse files
authored
[skiprelease] add release option (#675)
* try to skip release based on body or title with /skiprelease or [skiprelease] respectively * wip * change to skip release
1 parent f715a8a commit 1e598ab

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/build-latest.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build-activemq-docker-image:
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 5
26-
if: github.actor != 'dependabot[bot]'
26+
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
2727
steps:
2828
- uses: actions/checkout@v4
2929
- name: Set up QEMU
@@ -53,7 +53,7 @@ jobs:
5353
build-geoserver-docker-image:
5454
runs-on: ubuntu-latest
5555
timeout-minutes: 15
56-
if: github.actor != 'dependabot[bot]'
56+
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
5757
strategy:
5858
matrix:
5959
geoserverMajorVersion:
@@ -127,7 +127,7 @@ jobs:
127127
scan_image:
128128
runs-on: ubuntu-latest
129129
timeout-minutes: 20
130-
if: github.actor != 'dependabot[bot]'
130+
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
131131
needs: [build-geoserver-docker-image, run-scenario-tests]
132132
steps:
133133
- uses: actions/checkout@v4
@@ -157,7 +157,7 @@ jobs:
157157
run-scenario-tests:
158158
runs-on: ubuntu-latest
159159
timeout-minutes: 20
160-
if: github.actor != 'dependabot[bot]'
160+
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
161161
needs: [ build-geoserver-docker-image, build-activemq-docker-image]
162162
strategy:
163163
matrix:
@@ -200,7 +200,7 @@ jobs:
200200
bash ./test.sh
201201
202202
push-internal-pr-images:
203-
if: github.event_name == 'pull_request' && github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url && github.actor != 'dependabot[bot]'
203+
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]')
204204
runs-on: ubuntu-latest
205205
timeout-minutes: 20
206206
needs: [ build-geoserver-docker-image, run-scenario-tests ]

.github/workflows/deploy-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# contents: read
1313
jobs:
1414
deploy-image:
15-
if: github.actor != 'dependabot[bot]'
15+
if: github.actor != 'dependabot[bot]' && contains(github.event.comment.body, '/skiprelease') && contains(github.event.comment.title, '[skiprelease]')
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 15
1818
env:

scripts/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function install_plugin() {
263263
EXT=$2
264264

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

0 commit comments

Comments
 (0)