Skip to content

Commit b98d6cb

Browse files
authored
chore(ci): Retry workflows on error or timeout (#15243)
1 parent d3c23e6 commit b98d6cb

File tree

7 files changed

+8
-16
lines changed

7 files changed

+8
-16
lines changed

.github/workflows/auth.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ jobs:
8686
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
8787
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
8888
with:
89-
timeout_minutes: 120
89+
timeout_minutes: 15
9090
max_attempts: 3
91-
retry_on: error
9291
retry_wait_seconds: 120
9392
command: ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
9493

@@ -164,8 +163,7 @@ jobs:
164163
run: scripts/configure_test_keychain.sh
165164
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
166165
with:
167-
timeout_minutes: 120
166+
timeout_minutes: 15
168167
max_attempts: 3
169-
retry_on: error
170168
retry_wait_seconds: 120
171169
command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

.github/workflows/common.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ jobs:
112112
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
113113
if: contains(join(inputs.platforms), matrix.platform) || matrix.os == 'macos-14'
114114
with:
115-
timeout_minutes: 120
115+
timeout_minutes: 15
116116
max_attempts: 3
117-
retry_on: error
118117
retry_wait_seconds: 120
119118
command: |
120119
./scripts/build.sh \

.github/workflows/common_catalyst.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ jobs:
4141
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
4242
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
4343
with:
44-
timeout_minutes: 120
44+
timeout_minutes: 15
4545
max_attempts: 3
46-
retry_on: error
4746
retry_wait_seconds: 120
4847
command: |
4948
scripts/test_catalyst.sh \

.github/workflows/common_cocoapods.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ jobs:
139139
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
140140
if: contains(join(inputs.platforms), matrix.platform) || matrix.os == 'macos-14'
141141
with:
142-
timeout_minutes: 120
142+
timeout_minutes: 15
143143
max_attempts: 3
144-
retry_on: error
145144
retry_wait_seconds: 120
146145
command: |
147146
scripts/pod_lib_lint.rb ${{ inputs.product }}.podspec --platforms=${{ matrix.platform }} \

.github/workflows/crashlytics.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ jobs:
133133
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
134134
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
135135
with:
136-
timeout_minutes: 120
136+
timeout_minutes: 15
137137
max_attempts: 3
138-
retry_on: error
139138
retry_wait_seconds: 120
140139
command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

.github/workflows/spm.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ jobs:
8181
run: FirebaseFunctions/Backend/start.sh synchronous
8282
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
8383
with:
84-
timeout_minutes: 120
84+
timeout_minutes: 15
8585
max_attempts: 3
86-
retry_on: error
8786
retry_wait_seconds: 120
8887
command: scripts/build.sh Firebase-Package iOS ${{ matrix.test }}
8988

.github/workflows/storage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ jobs:
7171
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
7272
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
7373
with:
74-
timeout_minutes: 120
74+
timeout_minutes: 15
7575
max_attempts: 3
76-
retry_on: error
7776
retry_wait_seconds: 120
7877
command: ([ -z $plist_secret ] || scripts/build.sh Storage${{ matrix.language }} all)
7978

0 commit comments

Comments
 (0)