Skip to content

Commit 4b9b99b

Browse files
committed
ci: added retry to update_version step, to work around errors when there are concurrent runs
1 parent 9fca409 commit 4b9b99b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,14 @@ jobs:
117117
-o fastlane/api-8546008605074111507-287154-450dc77b365f.json
118118
rm fastlane/api-8546008605074111507-287154-450dc77b365f.json.key
119119
120+
# Retry this, in case there are concurrent jobs, which may lead to the error:
121+
# "Google Api Error: Invalid request - This Edit has been deleted."
120122
- name: Update versionCode
121-
run: bundle exec fastlane update_version
123+
uses: Wandalen/wretry.action@master
124+
with:
125+
command: bundle exec fastlane update_version
126+
attempt_limit: 3
127+
attempt_delay: 20000
122128

123129
- name: Output versionCode
124130
id: versionCode

0 commit comments

Comments
 (0)