mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
ci: bleh, do retry inline as part of upload
This commit is contained in:
parent
eeefca0908
commit
03c7986bb0
20
.github/workflows/gen_centos8_continuous.yml
vendored
20
.github/workflows/gen_centos8_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_debian10.3_continuous.yml
vendored
20
.github/workflows/gen_debian10.3_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_debian11_continuous.yml
vendored
20
.github/workflows/gen_debian11_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_debian9.12_continuous.yml
vendored
20
.github/workflows/gen_debian9.12_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_fedora33_continuous.yml
vendored
20
.github/workflows/gen_fedora33_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_fedora34_continuous.yml
vendored
20
.github/workflows/gen_fedora34_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_fedora35_continuous.yml
vendored
20
.github/workflows/gen_fedora35_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_macos_continuous.yml
vendored
20
.github/workflows/gen_macos_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_ubuntu18_continuous.yml
vendored
20
.github/workflows/gen_ubuntu18_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_ubuntu20.04_continuous.yml
vendored
20
.github/workflows/gen_ubuntu20.04_continuous.yml
vendored
@ -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
|
||||
|
20
.github/workflows/gen_windows_continuous.yml
vendored
20
.github/workflows/gen_windows_continuous.yml
vendored
@ -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
|
||||
|
@ -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 }}"},
|
||||
),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user