Backport of skip envoy version check in ci into release/1.16.x (#19316)

* no-op commit due to failed cherry-picking

* Update verify-envoy-version.yml

* Update verify-envoy-version.yml

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Anita Akaeze <anita.akaeze@hashicorp.com>
This commit is contained in:
hc-github-team-consul-core 2023-10-20 14:47:23 -04:00 committed by GitHub
parent 963f609b6d
commit 11ee74d054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -17,6 +17,11 @@ if [ -z "$current_branch" ]; then
exit 1
fi
if [[ "$SKIP_VERIFY_ENVOY_VERSION" = "true" ]]; then
echo -e "*************** VERIFY ENVOY VERSION IS DISABLED. To enable, update environment variable in Github settings *****************"
exit 0
fi
# Get Consul and Envoy version
SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
pushd $SCRIPT_DIR/../.. # repository root

View file

@ -14,6 +14,9 @@ on:
- main
- release/**
env:
SKIP_VERIFY_ENVOY_VERSION: ${{ vars.SKIP_VERIFY_ENVOY_VERSION }}
jobs:
verify-envoy-version:
runs-on: ubuntu-latest
@ -25,4 +28,4 @@ jobs:
- name: Run Envoy Version Verification for main and release branches
run: ./.github/scripts/verify_envoy_version.sh
env:
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}