Skip to content

Commit

Permalink
ci: always skip java setup skips if java is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaschoenburg committed May 9, 2023
1 parent 7eefd9e commit d828cea
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/actions/setup-zeebe/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ runs:
secrets: |
secret/data/products/zeebe/ci/zeebe ARTIFACTS_USR;
secret/data/products/zeebe/ci/zeebe ARTIFACTS_PSW;
- if: ${{ inputs.java == 'true' }}
uses: actions/setup-java@v3
- uses: actions/setup-java@v3
if: inputs.java == 'true'
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
Expand All @@ -75,7 +75,8 @@ runs:
- name: 'Create settings.xml'
uses: s4u/maven-settings-action@v2.8.0
if: |
inputs.secret_vault_address != ''
inputs.java == 'true'
&& inputs.secret_vault_address != ''
&& inputs.secret_vault_roleId != ''
&& inputs.secret_vault_secretId != ''
with:
Expand All @@ -88,6 +89,7 @@ runs:
}]
mirrors: '[{"url": "https://repository.nexus.camunda.cloud/content/groups/internal/", "id": "camunda-nexus", "mirrorOf": "zeebe,zeebe-snapshots", "name": "camunda Nexus"}]'
- name: Configure Maven
if: inputs.java == 'true'
shell: bash
# --errors ensures errors will also spit out a stack trace, which is always useful, and has no impact on normal builds
# maven.wagon.* and maven.resolver.transport set the resolver's network transport to Wagon,
Expand All @@ -112,8 +114,8 @@ runs:
-D aether.syncContext.named.nameMapper=file-gav
-D aether.syncContext.named.factory=file-lock
EOF
- if: ${{ inputs.maven-cache == 'true' }}
name: Cache local Maven repository
- name: Cache local Maven repository
if: inputs.java == 'true'
uses: actions/cache@v3
with:
path: ~/.m2/repository/cached/releases/
Expand Down

0 comments on commit d828cea

Please sign in to comment.