@cryptotaxi247 / netdata-1 / commits / da43e88d0

Add automatic retries fo static builds during nightly and release builds. (#12961)

Austin S. Hemmelgarn committed May 23, 2022 at 07:35 UTC da43e88d05604b2c0978580f80c18f081314a585
1 file changed +9 -1
.github/workflows/build.yml
+9 -1
@@ -105,8 +105,16 @@ jobs:
105 run: |
106 sed -i 's/^RELEASE_CHANNEL="nightly" *#/RELEASE_CHANNEL="stable" #/' netdata-installer.sh packaging/makeself/install-or-update.sh
107 - name: Build
108 - id: build
108 + if: github.event_name != 'workflow_dispatch' # Don’t use retries on PRs.
109 run: .github/scripts/build-static.sh ${{ matrix.arch }}
110 + - name: Build
111 + if: github.event_name == 'workflow_dispatch'
112 + id: build
113 + uses: nick-fields/retry@v2
114 + with:
115 + timeout_minutes: 180
116 + retries: 3
117 + command: .github/scripts/build-static.sh ${{ matrix.arch }}
118 - name: Store
119 id: store
120 uses: actions/upload-artifact@v3