Skip to content

Commit 11a8b7b

Browse files
authored
Merge pull request #46 from pabrahamsson/gh_workflow_triggers
Only trigger GH actions on upstream repo & exclude PR builds on changes outside of source
2 parents 9de76e9 + 8e530ba commit 11a8b7b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ on:
77

88
jobs:
99
build:
10-
10+
if: github.repository == 'rht-labs/open-management-portal-git-api'
1111
runs-on: ubuntu-latest
12-
1312
steps:
1413
- uses: actions/checkout@v2
1514
- name: Set up JDK

.github/workflows/pull-request-checks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: PR check
22

33
on:
4-
- pull_request
4+
pull_request:
5+
paths-ignore:
6+
- deployment/**
7+
- development/**
8+
- .vscode/**
59

610
jobs:
711
build:
8-
912
runs-on: ubuntu-latest
10-
1113
steps:
1214
- uses: actions/checkout@v2
1315
- name: Set up JDK

0 commit comments

Comments
 (0)