diff --git a/.github/workflows/binary-check.yml b/.github/workflows/binary-check.yml index a5ea13a..ce12019 100644 --- a/.github/workflows/binary-check.yml +++ b/.github/workflows/binary-check.yml @@ -15,6 +15,14 @@ on: type: string required: false default: '' + ignore-job-coursier-cache: + type: boolean + required: false + default: true + extra-coursier-cache-key: + type: string + required: false + default: '' run-scheduled-in-forks: type: boolean required: false @@ -39,6 +47,10 @@ jobs: - name: Coursier Cache id: coursier-cache uses: coursier/cache-action@v6 + with: + ignoreJob: ${{ inputs.ignore-job-coursier-cache }} + ignoreMatrix: true + extraKey: ${{ inputs.extra-coursier-cache-key }} - name: Install Adoptium Temurin OpenJDK uses: coursier/setup-action@v1 diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml index f8ebc7c..ab0c498 100644 --- a/.github/workflows/cmd.yml +++ b/.github/workflows/cmd.yml @@ -46,6 +46,18 @@ on: type: string required: false default: "" + ignore-job-coursier-cache: + type: boolean + required: false + default: true + ignore-matrix-coursier-cache: + type: boolean + required: false + default: true + extra-coursier-cache-key: + type: string + required: false + default: '' run-scheduled-in-forks: type: boolean required: false @@ -106,6 +118,10 @@ jobs: - name: Coursier Cache id: coursier-cache uses: coursier/cache-action@v6 + with: + ignoreJob: ${{ inputs.ignore-job-coursier-cache }} + ignoreMatrix: ${{ inputs.ignore-matrix-coursier-cache }} + extraKey: ${{ inputs.extra-coursier-cache-key }} - name: Gradle Cache uses: burrunan/gradle-cache-action@v1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3b1ac69..26cb9dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,14 @@ on: type: string required: false default: '' + ignore-job-coursier-cache: + type: boolean + required: false + default: true + extra-coursier-cache-key: + type: string + required: false + default: '' cmd: type: string required: false @@ -40,6 +48,10 @@ jobs: - name: Coursier Cache id: coursier-cache uses: coursier/cache-action@v6 + with: + ignoreJob: ${{ inputs.ignore-job-coursier-cache }} + ignoreMatrix: true + extraKey: ${{ inputs.extra-coursier-cache-key }} - name: Gradle Cache uses: burrunan/gradle-cache-action@v1 diff --git a/README.md b/README.md index 0ec60b4..2a465a1 100644 --- a/README.md +++ b/README.md @@ -41,21 +41,24 @@ Every matrix dimension will be access by environment variable like `MATRIX_$(upp **Parameters**: -| Parameter | Since | Required | Default | Description | -|------------------------|-------|--------------------|---------|-------------------------------------------------| -| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout | -| cmd | 2.0.0 | :exclamation: | - | Running command | -| java | 2.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version (space/comma delimited list) | -| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file | -| scala | 2.0.0 | :heavy_minus_sign: | '' | _Scala_ version (space/comma delimited list) | -| add-dimensions | 2.0.0 | :heavy_minus_sign: | '' | Other matrix dimensions (json object) | -| include | 2.0.0 | :heavy_minus_sign: | [] | Matrix include's (json object array) | -| exclude | 2.0.0 | :heavy_minus_sign: | [] | Matrix exclude's (json object array) | -| cache-key | 2.0.0 | :heavy_minus_sign: | '' | Key of custom cache | -| cache-path | 2.0.0 | :heavy_minus_sign: | '' | Path of custom cache | -| env | 2.0.0 | :heavy_minus_sign: | '' | Custom ENV vars | -| run-scheduled-in-forks | 3.1.1 | :heavy_minus_sign: | false | Run by schedule in fork | -| gradle-build-root | 3.3.0 | :heavy_minus_sign: | '' | Directory for Gradle builds | +| Parameter | Since | Required | Default | Description | +|------------------------------|-------|--------------------|---------|-------------------------------------------------| +| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout | +| cmd | 2.0.0 | :exclamation: | - | Running command | +| java | 2.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version (space/comma delimited list) | +| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file | +| scala | 2.0.0 | :heavy_minus_sign: | '' | _Scala_ version (space/comma delimited list) | +| add-dimensions | 2.0.0 | :heavy_minus_sign: | '' | Other matrix dimensions (json object) | +| include | 2.0.0 | :heavy_minus_sign: | [] | Matrix include's (json object array) | +| exclude | 2.0.0 | :heavy_minus_sign: | [] | Matrix exclude's (json object array) | +| cache-key | 2.0.0 | :heavy_minus_sign: | '' | Key of custom cache | +| cache-path | 2.0.0 | :heavy_minus_sign: | '' | Path of custom cache | +| env | 2.0.0 | :heavy_minus_sign: | '' | Custom ENV vars | +| run-scheduled-in-forks | 3.1.1 | :heavy_minus_sign: | false | Run by schedule in fork | +| gradle-build-root | 3.3.0 | :heavy_minus_sign: | '' | Directory for Gradle builds | +| ignore-job-coursier-cache | 3.4.0 | :heavy_minus_sign: | true | `ignoreJob` parameter for Coursier Cache | +| ignore-matrix-coursier-cache | 3.4.0 | :heavy_minus_sign: | true | `ignoreMatrix` parameter for Coursier Cache | +| extra-coursier-cache-key | 3.4.0 | :heavy_minus_sign: | '' | `extraKey` parameter for Coursier Cache | **How to use**: @@ -91,13 +94,15 @@ This workflow is used for publishing snapshots artifacts to [Sonatype Snapshots] **Parameters**: -| Parameter | Since | Required | Default | Description | -|-------------------|-------|--------------------|----------------|---------------------------------| -| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout | -| java | 1.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version | -| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file | -| cmd | 3.3.0 | :heavy_minus_sign: | sbt ci-release | Running command | -| gradle-build-root | 3.3.0 | :heavy_minus_sign: | '' | Directory for Gradle builds | +| Parameter | Since | Required | Default | Description | +|---------------------------|-------|--------------------|----------------|------------------------------------------| +| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout | +| java | 1.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version | +| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file | +| cmd | 3.3.0 | :heavy_minus_sign: | sbt ci-release | Running command | +| gradle-build-root | 3.3.0 | :heavy_minus_sign: | '' | Directory for Gradle builds | +| ignore-job-coursier-cache | 3.4.0 | :heavy_minus_sign: | true | `ignoreJob` parameter for Coursier Cache | +| extra-coursier-cache-key | 3.4.0 | :heavy_minus_sign: | '' | `extraKey` parameter for Coursier Cache | **How to use**: @@ -121,12 +126,14 @@ This workflow is used for validate binary compatibility the current version. **Parameters**: -| Parameter | Since | Required | Default | Description | -|------------------------|-------|--------------------|---------|---------------------------------| -| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout | -| java | 1.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version | -| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file | -| run-scheduled-in-forks | 3.1.1 | :heavy_minus_sign: | false | Run by schedule in fork | +| Parameter | Since | Required | Default | Description | +|---------------------------|-------|--------------------|---------|------------------------------------------| +| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout | +| java | 1.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version | +| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file | +| run-scheduled-in-forks | 3.1.1 | :heavy_minus_sign: | false | Run by schedule in fork | +| ignore-job-coursier-cache | 3.4.0 | :heavy_minus_sign: | true | `ignoreJob` parameter for Coursier Cache | +| extra-coursier-cache-key | 3.4.0 | :heavy_minus_sign: | '' | `extraKey` parameter for Coursier Cache | **How to use**: