diff --git a/.github/actions/setup-zeebe/action.yml b/.github/actions/setup-zeebe/action.yml index 3e89c59917e8..d4f221a97b6e 100644 --- a/.github/actions/setup-zeebe/action.yml +++ b/.github/actions/setup-zeebe/action.yml @@ -116,7 +116,7 @@ runs: -D maven.artifact.threads=32 EOF - name: Cache local Maven repository - if: inputs.java == 'true' && !startsWith(runner.name, 'actions-runner-') + if: inputs.java == 'true' && startsWith(runner.name, 'actions-runner-') uses: actions/cache@v3 with: path: ~/.m2/repository/cached/releases/ @@ -124,7 +124,7 @@ runs: restore-keys: | self-hosted-${{ runner.os }}-mvn-${{ inputs.maven-cache-key-modifier }} - name: Cache local Maven repository - if: inputs.java == 'true' && startsWith(runner.name, 'actions-runner-') + if: inputs.java == 'true' && !startsWith(runner.name, 'actions-runner-') uses: actions/cache@v3 with: path: ~/.m2/repository/cached/releases/