From 4b9b99be98fab916a92fd8d5b8db1e23fb547350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 13 Oct 2023 10:45:58 +0200 Subject: [PATCH] ci: added retry to update_version step, to work around errors when there are concurrent runs --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb7837b..b106f11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -117,8 +117,14 @@ jobs: -o fastlane/api-8546008605074111507-287154-450dc77b365f.json rm fastlane/api-8546008605074111507-287154-450dc77b365f.json.key + # Retry this, in case there are concurrent jobs, which may lead to the error: + # "Google Api Error: Invalid request - This Edit has been deleted." - name: Update versionCode - run: bundle exec fastlane update_version + uses: Wandalen/wretry.action@master + with: + command: bundle exec fastlane update_version + attempt_limit: 3 + attempt_delay: 20000 - name: Output versionCode id: versionCode