diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49295a6a02fee..2935eba73737b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -288,9 +288,9 @@ jobs: with: path: | ${{ env.maven_local_path }} - key: ${{ runner.os }}-m2-opensearch-${{ opensearch_version }}-plugin-${{ hashFiles('**.sha1') }} + key: ${{ runner.os }}-m2-opensearch-${{ env.opensearch_version }}-plugin-${{ hashFiles('**.sha1') }} restore-keys: | - ${{ runner.os }}-m2-opensearch-plugin-${{ opensearch_version }}- + ${{ runner.os }}-m2-opensearch-plugin-${{ env.opensearch_version }}- - if: ${{steps.pre-assemble-cache-m2-opensearch-plugins.outputs.cache-hit == 'true'}} name: PRE Cache ${{ env.maven_local_path }} success @@ -309,9 +309,9 @@ jobs: with: path: | ${{ env.maven_local_path }} - key: ${{ runner.os }}-m2-opensearch-${{ opensearch_version }}-plugin-${{ hashFiles('**.sha1') }} + key: ${{ runner.os }}-m2-opensearch-${{ env.opensearch_version }}-plugin-${{ hashFiles('**.sha1') }} restore-keys: | - ${{ runner.os }}-m2-opensearch-plugin-${{ opensearch_version }}- + ${{ runner.os }}-m2-opensearch-plugin-${{ env.opensearch_version }}- - if: ${{steps.post-assemble-cache-m2-opensearch-plugins.outputs.cache-hit == 'true'}} name: POST Cache ${{ env.maven_local_path }} success