Skip to content

Commit 6042e51

Browse files
committed
update workflow dispatch rules
1 parent afa8e8d commit 6042e51

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/integration-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Run Integration Tests
22

3-
on: [pull_request, workflow_dispatch]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
branches: ['master', 'enterprise-[0-9]*.[0-9]*-release', 'enterprise-[0-9]*.[0-9]*.[0-9]*-release']
7+
workflow_dispatch:
8+
inputs:
9+
target-branch:
10+
description: 'Branch that would be merged into'
11+
required: true
12+
source-branch:
13+
description: 'Branch that would be merged'
14+
required: true
415

516
# Get target and source branch from different variables depending on how it was triggered
617
env:
@@ -21,8 +32,6 @@ jobs:
2132
fetch-depth: 1
2233
- name: Queue ${{ matrix.jankyJobName }} build
2334
run: |
24-
ref="${{ github.ref }}"
25-
merge_branch=${ref#"refs/heads/"}
2635
backup_utils_branch="${{ env.SOURCE_BRANCH }}"
2736
branch_name="${{ env.TARGET_BRANCH }}"
2837
curl -v -X POST \

0 commit comments

Comments
 (0)