Skip to content

Commit

Permalink
Merge pull request #3 from derek-ho/retry
Browse files Browse the repository at this point in the history
Retry the flaky download
  • Loading branch information
derek-ho authored Jul 24, 2024
2 parents eee8e92 + fc12341 commit 623a4c4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@ runs:
registry-url: 'https://registry.npmjs.org'

- name: Setup Opensearch Dashboards
run: |
npm uninstall -g yarn
echo "Installing yarn ${{ steps.tool-versions.outputs.yarn_version }}"
npm i -g yarn@${{ steps.tool-versions.outputs.yarn_version }}
yarn cache clean
yarn add sha.js
working-directory: OpenSearch-Dashboards
shell: bash
uses: Wandalen/wretry.action@master
with:
attempts: 3
command: |
npm uninstall -g yarn
echo "Installing yarn ${{ steps.tool-versions.outputs.yarn_version }}"
npm i -g yarn@${{ steps.tool-versions.outputs.yarn_version }}
yarn cache clean
yarn add sha.js
current_path: OpenSearch-Dashboards

- name: Bootstrap the OpenSearch Dashboard
uses: nick-fields/retry@v2
Expand Down

0 comments on commit 623a4c4

Please sign in to comment.