Skip to content

Commit 120b3da

Browse files
committed
ci: configure pull request builds
1 parent 4ca3d57 commit 120b3da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/jekyll.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Deploy Jekyll site to Pages
22

33
on:
4-
# Runs on pushes targeting the default branch
5-
# push:
6-
# branches: ["master"]
4+
pull_request:
75

86
# Allows you to run this workflow manually from the Actions tab
97
workflow_dispatch:
@@ -17,7 +15,7 @@ permissions:
1715
# Allow one concurrent deployment
1816
concurrency:
1917
group: "pages"
20-
cancel-in-progress: true
18+
cancel-in-progress: false
2119

2220
jobs:
2321
# Build job
@@ -51,6 +49,7 @@ jobs:
5149

5250
# Deployment job
5351
deploy:
52+
if: github.ref == 'refs/heads/master'
5453
environment:
5554
name: github-pages
5655
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)