fix: integration tests not triggering on PR open

I realized that when a new PR is opened, the integration tests aren't triggering (or aren't always?) since the replay logic was introduced

amend the concurrency logic a bit to trigger on opened PRs

Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
Charlie Doern 2025-07-31 11:11:37 -04:00
parent 3a574ef23c
commit 9b50ceb817

View file

@ -40,10 +40,8 @@ concurrency:
# The "no-run" group ensures that irrelevant label events don't interfere with the real workflows.
group: >-
${{ github.workflow }}-${{ github.ref }}-${{
(github.event.action == 'opened' ||
github.event.action == 'synchronize' ||
(github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests'))) &&
(contains(github.event.pull_request.labels.*.name, 're-record-tests') && 'rerecord' || 'replay') ||
(github.event.action == 'opened' || github.event.action == 'synchronize') && 'replay' ||
(github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests')) && 'rerecord' ||
'no-run'
}}
cancel-in-progress: true