ci: bleh, do retry inline as part of upload

This commit is contained in:
Wez Furlong committed 2021-12-08 10:31:56 -07:00
1 parent eeefca0908
commit 03c7986bb0
12 files changed
+228 -12

No files matched your search

+19 -1
View File
@@ -136,4 +136,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
@@ -158,4 +158,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -158,4 +158,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
@@ -171,4 +171,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -131,4 +131,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -131,4 +131,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -131,4 +131,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -115,4 +115,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly WezTerm-*.zip
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -116,4 +116,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
@@ -158,4 +158,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -90,4 +90,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
+19 -1
View File
@@ -422,7 +422,25 @@ cargo build --all --release""",
),
RunStep(
"Upload to Nightly Release",
f"bash ci/retry.sh gh release upload --clobber nightly {glob}",
f"""
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly {glob}
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
""",
env={"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"},
),
]