2023-04-27 00:29:43 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
|
|
# This action ensures that Envoy is up to date on main and release branches.
|
|
|
|
# This workflow is only triggered on the main and release branches and will
|
|
|
|
# only perform a version check when a new release branch is created
|
|
|
|
# Contact Consul team for any questions
|
|
|
|
|
|
|
|
name: Verify Envoy Version
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release/**
|
2023-10-20 19:50:56 +00:00
|
|
|
|
2023-10-19 20:24:17 +00:00
|
|
|
env:
|
2023-10-20 18:09:31 +00:00
|
|
|
SKIP_VERIFY_ENVOY_VERSION: ${{ vars.SKIP_VERIFY_ENVOY_VERSION }}
|
2023-10-19 20:24:17 +00:00
|
|
|
|
2023-04-27 00:29:43 +00:00
|
|
|
jobs:
|
|
|
|
verify-envoy-version:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-14 19:49:03 +00:00
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
2023-04-27 00:29:43 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
fetch-depth: 0 # by default the checkout action doesn't checkout all branches
|
|
|
|
- name: Run Envoy Version Verification for main and release branches
|
|
|
|
run: ./.github/scripts/verify_envoy_version.sh
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|