Skip to content

Commit

Permalink
Delete ls that throw an error and edit keys of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasas993 committed Nov 12, 2024
1 parent 91e5656 commit 6dc514b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,14 @@ jobs:
id: cache-opensearch-plugins
uses: actions/cache@v4
with:
path: $HOME/.m2/repository/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/
key: ${{ runner.os }}-opensearch-${{ hashFiles('performance-analyzer**.xml') }}
path: /$HOME/.m2/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/
key: ${{ runner.os }}-opensearch-performance-analyzer-${{ hashFiles('performance-analyzer**.xml') }}
restore-keys: |
${{ runner.os }}-opensearch-performance-analyzer
- if: ${{steps.cache-opensearch-plugins.cache-hit != 'true'}}
name: Cache OpenSearch plugins fail
run: echo "Failed to cache OpenSearch plugins. DIRECTORYY $HOME/.m2/repository/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/ "
run: echo "Failed to cache OpenSearch plugins. DIRECTORYY /$HOME/.m2/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/ "

- name: Run `assemble.sh`
run: |
Expand All @@ -303,16 +303,12 @@ jobs:
id: cache-opensearch-plugins-post
uses: actions/cache@v4
with:
path: $HOME/.m2/repository/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/
key: ${{ runner.os }}-opensearch-${{ hashFiles('performance-analyzer**.xml') }}
path: /$HOME/.m2/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/
key: ${{ runner.os }}-opensearch-performance-analyzer-${{ hashFiles('performance-analyzer**.xml') }}
restore-keys: |
${{ runner.os }}-opensearch-performance-analyzer
- if: ${{steps.cache-opensearch-plugins-post.cache-hit != 'true'}}
name: Cache OpenSearch plugins fail POST
run: |
ls $HOME/.m2/repository/org/opensearch/plugin/performance-analyzer/${{ env.VERSION }}.0/ >> $GITHUB_OUTPUT
${{ runner.os }}-opensearch
- name: Test RPM package
if: ${{ matrix.distribution == 'rpm' }}
uses: addnab/docker-run-action@v3
Expand Down

0 comments on commit 6dc514b

Please sign in to comment.