Skip to content

Commit 9ae6602

Browse files
committed
gh action - pr only for develop branch
2 parents 51aacf3 + 87ae403 commit 9ae6602

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.github/gh-config-template/gh_template.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
#@ load("@ytt:data", "data")
22
#@ load("ytt-helpers.star", "helpers")
3-
43
name: unit-integration-tests
54

65
on:
7-
8-
pull_request_target:
9-
branches:
10-
- develop
11-
types:
12-
- opened
13-
- reopened
14-
- synchronize
6+
pull_request_target:
7+
types:
8+
- labeled
159

1610
env:
1711
MAPPING: |
@@ -38,6 +32,7 @@ env:
3832

3933
jobs:
4034
repo-clone:
35+
if: github.event.label.name == 'ready-to-run'
4136
runs-on: ubuntu-latest
4237
steps:
4338
- name: routing-release-repo

.github/workflows/tests-workflow.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: unit-integration-tests
22
on:
33
pull_request_target:
4-
branches:
5-
- develop
64
types:
7-
- opened
8-
- reopened
9-
- synchronize
5+
- labeled
106
env:
117
MAPPING: |
128
build_nats_server=src/code.cloudfoundry.org/vendor/github.com/nats-io/nats-server/v2
@@ -31,6 +27,7 @@ env:
3127
FUNCTIONS: ci/routing-release/helpers/configure-binaries.bash
3228
jobs:
3329
repo-clone:
30+
if: github.event.label.name == 'ready-to-run'
3431
runs-on: ubuntu-latest
3532
steps:
3633
- name: routing-release-repo

0 commit comments

Comments
 (0)