fix to not cancel Trust Bundle watch when another upstream is available #31115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) HashiCorp, Inc. | |
# SPDX-License-Identifier: MPL-2.0 | |
name: "Check for metrics tests" | |
on: | |
pull_request: | |
types: [ opened, synchronize, labeled ] | |
# Runs on PRs to main | |
branches: | |
- main | |
jobs: | |
metrics_test_check: | |
if: "! ( contains(github.event.pull_request.labels.*.name, 'pr/no-metrics-test') || github.event.pull_request.user.login == 'hc-github-team-consul-core' )" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
name: "checkout repo" | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 # by default the checkout action doesn't checkout all branches | |
- name: "Check for metrics modifications" | |
run: ./.github/scripts/metrics_checker.sh | |
# as of now, cannot use github vars in "external" scripts; ref: https://github.saobby.my.eu.orgmunity/t/using-github-action-environment-variables-in-shell-script/18330 | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
PR_BODY: ${{ github.event.pull_request.body }} | |
shell: bash |