Skip to content

Commit b04a15f

Browse files
committed
allow direct run
1 parent b9cd362 commit b04a15f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/java-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ jobs:
142142
- name: Check glibc version outside docker
143143
run: ldd --version
144144
- name: Build and run in Ubuntu 20.04 container (Dry Run)
145-
if: github.event_name == 'release'
146-
# if: github.event_name == 'pull_request'
145+
if: |
146+
github.event_name == 'pull_request' ||
147+
inputs.dry_run == 'true'
147148
run: |
148149
docker run --platform linux/amd64 -v ${{ github.workspace }}:/workspace -w /workspace openjdk:8-jdk-buster bash -c "
149150
set -ex
@@ -208,7 +209,9 @@ jobs:
208209
mvn --batch-mode -DskipTests -Drust.release.build=true package
209210
"
210211
- name: Build and run in Ubuntu 20.04 container (Publish to Sonatype)
211-
# if: github.event_name == 'release'
212+
if: |
213+
github.event_name == 'release' ||
214+
inputs.dry_run == 'false'
212215
run: |
213216
docker run --platform linux/amd64 -v ${{ github.workspace }}:/workspace -w /workspace openjdk:8-jdk-buster bash -c "
214217
set -ex

0 commit comments

Comments
 (0)