NET-6239: Temporarily disable verify envoy check (#19299)

* skip verify envoy version

* cleanup
This commit is contained in:
Anita Akaeze 2023-10-19 13:24:17 -07:00 committed by GitHub
parent dfea3a0efe
commit ef27bc2fd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
current_branch=$GITHUB_REF current_branch=$GITHUB_REF_NAME
GITHUB_DEFAULT_BRANCH='main' GITHUB_DEFAULT_BRANCH='main'
if [ -z "$GITHUB_TOKEN" ]; then if [ -z "$GITHUB_TOKEN" ]; then
@ -13,10 +13,15 @@ if [ -z "$GITHUB_TOKEN" ]; then
fi fi
if [ -z "$current_branch" ]; then if [ -z "$current_branch" ]; then
echo "GITHUB_REF must be set" echo "GITHUB_REF_NAME must be set"
exit 1 exit 1
fi fi
if [[ "$SKIP_VERIFY_ENVOY_VERSION" = "true" ]]; then
echo -e "*************** VERIFY ENVOY VERSION IS DISABLED. To enable, set the environment variable SKIP_VERIFY_ENVOY_VERSION to false in .github/workflows/verify-envoy-version.yml *****************"
exit 0
fi
# Get Consul and Envoy version # Get Consul and Envoy version
SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
pushd $SCRIPT_DIR/../.. # repository root pushd $SCRIPT_DIR/../.. # repository root
@ -76,7 +81,6 @@ released_envoy_version=$(get_latest_envoy_version)
major_released_envoy_version="${released_envoy_version[@]:1:4}" major_released_envoy_version="${released_envoy_version[@]:1:4}"
validate_envoy_version_main(){ validate_envoy_version_main(){
echo "verify "main" GitHub branch has latest envoy version"
# Get envoy version for current branch # Get envoy version for current branch
ENVOY_VERSIONS=$(sanitize_consul_envoy_version | awk '{print $2}' | tr ',' ' ') ENVOY_VERSIONS=$(sanitize_consul_envoy_version | awk '{print $2}' | tr ',' ' ')
envoy_version_main_branch=$(get_major_version ${ENVOY_VERSIONS}) envoy_version_main_branch=$(get_major_version ${ENVOY_VERSIONS})

View File

@ -14,6 +14,9 @@ on:
- main - main
- release/** - release/**
env:
SKIP_VERIFY_ENVOY_VERSION: "true" ## temporarily disabled; set to false to enable script
jobs: jobs:
verify-envoy-version: verify-envoy-version:
runs-on: ubuntu-latest runs-on: ubuntu-latest