backport of commit 4b15fb96b88d633db1ef294d7cc86483df060b2b (#21920)

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-07-18 14:15:56 -04:00 committed by GitHub
parent 5041048f4d
commit 17a6700f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -240,7 +240,9 @@ jobs:
fi
# On a release branch, add a flag to rerun failed tests
if [[ "${{ github.ref_name }}" = "release/*" ]]; then
# shellcheck disable=SC2193 # can get false positive for this comparision
if [[ "${{ github.base_ref }}" == release/* ]] || [[ -z "${{ github.base_ref }}" && "${{ github.ref_name }}" == release/* ]]
then
RERUN_FAILS="--rerun-fails"
fi