ci: Retry package upload on transient errors
Use a total of 3 attempts for all curl commands with a 60 second delay (default would be 1 second with exponential backoff)
This commit is contained in:
@@ -12,7 +12,8 @@ on:
|
|||||||
- 'README.md'
|
- 'README.md'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOWNLOAD_TOOL: curl -fLOSs --retry 3
|
DOWNLOAD_TOOL: curl -fLOSs --retry 2 --retry-delay 60
|
||||||
|
UPLOAD_TOOL: curl -X POST --retry 2 --retry-delay 60
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
@@ -105,7 +106,7 @@ jobs:
|
|||||||
PKGNAME: ${{ steps.package.outputs.pkgname }}
|
PKGNAME: ${{ steps.package.outputs.pkgname }}
|
||||||
if: github.event_name == 'push' && matrix.cc-compiler == 'gcc'
|
if: github.event_name == 'push' && matrix.cc-compiler == 'gcc'
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
$UPLOAD_TOOL \
|
||||||
-F file="@$PKGNAME" \
|
-F file="@$PKGNAME" \
|
||||||
-F key="$GH_AUTH_KEY" \
|
-F key="$GH_AUTH_KEY" \
|
||||||
-F hash="$GITHUB_SHA" \
|
-F hash="$GITHUB_SHA" \
|
||||||
@@ -254,7 +255,7 @@ jobs:
|
|||||||
GH_AUTH_KEY: ${{ secrets.GH_AUTH_KEY }}
|
GH_AUTH_KEY: ${{ secrets.GH_AUTH_KEY }}
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
$UPLOAD_TOOL \
|
||||||
-F file=@$PKGNAME.exe \
|
-F file=@$PKGNAME.exe \
|
||||||
-F key="$GH_AUTH_KEY" \
|
-F key="$GH_AUTH_KEY" \
|
||||||
-F hash="$GITHUB_SHA" \
|
-F hash="$GITHUB_SHA" \
|
||||||
@@ -262,7 +263,7 @@ jobs:
|
|||||||
-F comment="$(git -C $GITHUB_WORKSPACE show -s --format=%B)" \
|
-F comment="$(git -C $GITHUB_WORKSPACE show -s --format=%B)" \
|
||||||
https://ci.olivevideoeditor.org/push.php
|
https://ci.olivevideoeditor.org/push.php
|
||||||
|
|
||||||
curl -X POST \
|
$UPLOAD_TOOL \
|
||||||
-F file=@$PKGNAME.zip \
|
-F file=@$PKGNAME.zip \
|
||||||
-F key="$GH_AUTH_KEY" \
|
-F key="$GH_AUTH_KEY" \
|
||||||
-F hash="$GITHUB_SHA" \
|
-F hash="$GITHUB_SHA" \
|
||||||
@@ -276,7 +277,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_AUTH_KEY: ${{ secrets.GH_AUTH_KEY }}
|
GH_AUTH_KEY: ${{ secrets.GH_AUTH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
curl -fLSs --retry 3 https://github.com/google/breakpad/blob/master/src/tools/windows/binaries/dump_syms.exe?raw=true > dump_syms.exe
|
curl -fLSs --retry 2 --retry-delay 60 \
|
||||||
|
https://github.com/google/breakpad/blob/master/src/tools/windows/binaries/dump_syms.exe?raw=true > dump_syms.exe
|
||||||
./dump_syms app/olive-editor.pdb > olive-editor.sym
|
./dump_syms app/olive-editor.pdb > olive-editor.sym
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-F symfile=@olive-editor.sym \
|
-F symfile=@olive-editor.sym \
|
||||||
@@ -407,7 +409,7 @@ jobs:
|
|||||||
GH_AUTH_KEY: ${{ secrets.GH_AUTH_KEY }}
|
GH_AUTH_KEY: ${{ secrets.GH_AUTH_KEY }}
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
$UPLOAD_TOOL \
|
||||||
-F file=@$PKGNAME.zip \
|
-F file=@$PKGNAME.zip \
|
||||||
-F key="$GH_AUTH_KEY" \
|
-F key="$GH_AUTH_KEY" \
|
||||||
-F hash="$GITHUB_SHA" \
|
-F hash="$GITHUB_SHA" \
|
||||||
|
|||||||
Reference in New Issue
Block a user