Skip to content

Commit aea6286

Browse files
committed
Disable deployment actions when CI is invoked in a PR
Signed-off-by: Elijah Zupancic <[email protected]>
1 parent 7a147b3 commit aea6286

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515

16+
if: github.ref != 'refs/heads/master'
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- uses: actions/checkout@v2
20+
21+
- name: Install dependencies
22+
run: sudo apt-get install -y wait-for-it
23+
- name: Run tests - latest njs version
24+
run: ./test.sh latest-njs-oss
25+
- name: Run tests - stable njs version
26+
run: ./test.sh oss
27+
28+
build_and_deploy:
29+
runs-on: ubuntu-latest
30+
31+
if: github.ref == 'refs/heads/main'
1632
steps:
1733
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1834
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)