diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index b4f105b..cf11480 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -35,7 +35,7 @@ jobs: - name: Extract PR metadata from 'push' event if: github.event_name == 'push' run: | - source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" + source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" # If the action was triggered by a commit being pushed, we must resolve the PR metadata via the GitHub API @@ -79,7 +79,7 @@ jobs: id: parse-labels run: | set -o errexit -o nounset -o pipefail ${RUNNER_DEBUG:+-x} - source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" + source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" backport_labels=() backport_branches=() @@ -160,7 +160,7 @@ jobs: id: check-backport-branch-already-exists run: | set -o errexit -o nounset -o pipefail ${RUNNER_DEBUG:+-x} - source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" + source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" source backport/backport.functions @@ -183,7 +183,7 @@ jobs: if: steps.check-backport-branch-already-exists.outputs.exists == 'false' run: | set -o errexit -o nounset -o pipefail ${RUNNER_DEBUG:+-x} - source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" + source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" # Git metadata is required but not available out-of-the-box, inherit from the action git config user.name "${GITHUB_ACTOR}" @@ -219,7 +219,7 @@ jobs: if: failure() run: | set -o errexit -o nounset -o pipefail ${RUNNER_DEBUG:+-x} - source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" + source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" echoerr "Error running action" echo_group "Troubleshooting Information:" diff --git a/backport.functions_tests b/backport.functions_tests index 8cb1191..9c8dbc9 100755 --- a/backport.functions_tests +++ b/backport.functions_tests @@ -5,7 +5,7 @@ SCRIPT_DIR=$(readlink -f "$0") SCRIPT_DIR="$(dirname "${SCRIPT_DIR}")" # Source the latest version of assert.sh unit testing library and include in current shell -source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)" +source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)" # shellcheck source=/dev/null . "${SCRIPT_DIR}"/backport.functions diff --git a/backport_tests b/backport_tests index 7f237ae..32bbda7 100755 --- a/backport_tests +++ b/backport_tests @@ -5,7 +5,7 @@ SCRIPT_DIR=$(readlink -f "$0") SCRIPT_DIR="$(dirname "${SCRIPT_DIR}")" # Source the latest version of assert.sh unit testing library and include in current shell -source /dev/stdin <<< "$(curl --fail --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)" +source /dev/stdin <<< "$(curl --fail --retry 5 --retry-all-errors --show-error --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)" TESTS_RESULT=0