diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index e418fe76ee09..6eb32e400f7d 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -7,6 +7,9 @@ inputs: cache: description: "Cache Maven repo" default: true + download_dependencies: + description: "Download all Maven dependencies so Maven can work in offline mode" + default: true runs: using: composite @@ -37,7 +40,7 @@ runs: java-version: ${{ inputs.java-version }} - name: Cache local Maven repo id: cache - if: ${{ inputs.cache }} + if: ${{ format('{0}', inputs.cache) == 'true' }} uses: actions/cache@v3 with: path: ~/.m2/repository @@ -46,6 +49,7 @@ runs: ${{ runner.os }}-maven- - name: Fetch any missing dependencies shell: bash + if: ${{ format('{0}', inputs.download_dependencies) == 'true' }} run: ./.github/bin/download-maven-dependencies.sh - name: Configure Problem Matchers if: ${{ inputs.java-version != '' }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d94fdeff9823..7b636411960e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -977,6 +977,7 @@ jobs: - uses: ./.github/actions/setup with: cache: false + download_dependencies: false - name: Product tests artifact uses: actions/download-artifact@v3 with: