Skip to content

Commit

Permalink
Merge pull request #48672 from Expensify/Rory-SleepBeforeUploadingArt…
Browse files Browse the repository at this point in the history
…ifacts

(cherry picked from commit 426b4d5)

(CP triggered by roryabraham)
  • Loading branch information
francoisl authored and OSBotify committed Sep 6, 2024
1 parent 9023750 commit 2900fa7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,14 @@ jobs:
uses: actions/download-artifact@v4

- name: 🚀 Create prerelease 🚀
run: gh release create ${{ env.STAGING_VERSION }} --title ${{ env.STAGING_VERSION }} --generate-notes --prerelease --target staging
run: |
gh release create ${{ env.STAGING_VERSION }} --title ${{ env.STAGING_VERSION }} --generate-notes --prerelease --target staging
RETRIES=0
MAX_RETRIES=10
until [[ $(gh release view ${{ env.STAGING_VERSION }}) || $RETRIES -ge $MAX_RETRIES ]]; do
echo "release not found, retrying $((MAX_RETRIES - RETRIES++)) times"
sleep 1
done
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit 2900fa7

Please sign in to comment.