Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ jobs:
--provenance \
--registry "$REGISTRY"

for attempt in 1 2 3 4 5 6; do
for attempt in {1..31}; do
published_sha1="$(registry_sha1)"
if [[ "$published_sha1" == "$EXPECTED_SHA1" ]]; then
echo "Published and verified ${EXPECTED_NAME}@${EXPECTED_VERSION} sha1=${EXPECTED_SHA1}"
Expand All @@ -286,8 +286,8 @@ jobs:
echo "Registry returned different bytes: local=$EXPECTED_SHA1 registry=$published_sha1" >&2
exit 1
fi
if (( attempt < 6 )); then sleep 10; fi
if (( attempt < 31 )); then sleep 10; fi
done

echo "${EXPECTED_NAME}@${EXPECTED_VERSION} was not visible at $REGISTRY after six checks" >&2
echo "${EXPECTED_NAME}@${EXPECTED_VERSION} was not visible at $REGISTRY after 31 checks (five minutes)" >&2
exit 1
Loading