Skip to content

Commit

Permalink
Backport of skip envoy version check in ci into release/1.16.x (#19316)
Browse files Browse the repository at this point in the history
* no-op commit due to failed cherry-picking

* Update verify-envoy-version.yml

* Update verify-envoy-version.yml

---------

Co-authored-by: temp <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
  • Loading branch information
3 people authored Oct 20, 2023
1 parent eb75ac2 commit 253a3c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/scripts/verify_envoy_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/verify-envoy-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 253a3c2

Please sign in to comment.