Skip to content

Commit 6a09746

Browse files
committed
fix: trigger IT only after Tests or manually
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent 09c4ad3 commit 6a09746

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/integration.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@ on:
88
types:
99
- completed
1010
workflow_dispatch:
11-
pull_request:
12-
branches:
13-
- main
1411

1512
concurrency:
1613
group: ${{ github.workflow }}-${{ github.ref }}
1714
cancel-in-progress: true
1815

1916
jobs:
2017
call-shared:
21-
# Only run if the test workflow succeeded, or if triggered directly
18+
# Only run if the test workflow succeeded, or if triggered manually
2219
if: |
2320
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
24-
github.event_name == 'workflow_dispatch' ||
25-
github.event_name == 'pull_request'
21+
github.event_name == 'workflow_dispatch'
2622
uses: trustification/exhort-integration-tests/.github/workflows/integration.yml@main
2723
with:
2824
language: javascript
29-
repo-url: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
30-
commit-sha: ${{ github.event.pull_request.head.sha || github.sha }}
25+
repo-url: ${{ github.repository }}
26+
commit-sha: ${{ github.event.workflow_run && github.event.workflow_run.head_sha || github.sha }}

0 commit comments

Comments
 (0)