Skip to content

Commit b94c795

Browse files
committed
Retry fetching modpack up to three times
1 parent 1c0cf4d commit b94c795

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/gametests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ jobs:
5757
distribution: 'microsoft'
5858
java-version: 21
5959
- name: 'Fetch modpack'
60-
run: ./fetch.sh modpacks/${{ matrix.modpack }}/${{ matrix.mc }}/${{ matrix.loader }}/pom.xml $(pwd)/run/mods
60+
uses: nick-fields/retry@v3 # Retry, as some maven repos can be finicky
61+
with:
62+
timeout_minutes: 5
63+
max_attempts: 3
64+
command: ./fetch.sh modpacks/${{ matrix.modpack }}/${{ matrix.mc }}/${{ matrix.loader }}/pom.xml $(pwd)/run/mods
6165
env:
6266
GITHUB_USER: ${{ github.actor }}
6367
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)