From d28610a9d2c443130663fd1181b472996108cd26 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 5 Nov 2020 05:14:58 -0800 Subject: [PATCH] Add retries to release GitHub Action Summary: Noticed that the icon download fails occasionally from GitHub. This adds a few retries in case that happens. Reviewed By: nikoant Differential Revision: D24647690 fbshipit-source-id: 3ed84cb0972b7715fd87c8b1e1e1bca9f89485a9 --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58042828f..b4146cffc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,11 +45,17 @@ jobs: with: node-version: '12.x' - name: Install - run: yarn - working-directory: ${{env.desktop-directory}} + uses: nick-invision/retry@v2.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: cd ${{env.desktop-directory}} && yarn - name: Build - run: yarn build --mac --mac-dmg - working-directory: ${{env.desktop-directory}} + uses: nick-invision/retry@v2.0.0 + with: + timeout_minutes: 30 + max_attempts: 3 + command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg - name: Upload uses: actions/upload-artifact@v1 with: @@ -67,11 +73,17 @@ jobs: with: node-version: '12.x' - name: Install - run: yarn - working-directory: ${{env.desktop-directory}} + uses: nick-invision/retry@v2.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: cd ${{env.desktop-directory}} && yarn - name: Build - run: yarn build --linux - working-directory: ${{env.desktop-directory}} + uses: nick-invision/retry@v2.0.0 + with: + timeout_minutes: 30 + max_attempts: 3 + command: cd ${{env.desktop-directory}} && yarn build --linux - name: Upload Linux uses: actions/upload-artifact@v1 with: @@ -89,11 +101,17 @@ jobs: with: node-version: '12.x' - name: Install - run: yarn - working-directory: ${{env.desktop-directory}} + uses: nick-invision/retry@v2.0.0 + with: + timeout_minutes: 10 + max_attempts: 3 + command: cd ${{env.desktop-directory}} && yarn - name: Build - run: yarn build --win - working-directory: ${{env.desktop-directory}} + uses: nick-invision/retry@v2.0.0 + with: + timeout_minutes: 30 + max_attempts: 3 + command: cd ${{env.desktop-directory}} && yarn build --win - name: Upload Windows uses: actions/upload-artifact@v1 with: