Skip to content

Commit c8113cf

Browse files
committed
GH Actions: Run lint on pull requests; deploy only for pushes to master
1 parent 9a63603 commit c8113cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Deploy blog
22

33
on:
44
push:
5-
branches:
6-
- master
5+
pull_request:
76

87
jobs:
98
deploy:
@@ -20,5 +19,6 @@ jobs:
2019
python -m pip install -r requirements.txt
2120
- name: Lint
2221
run: blog lint
23-
- name: Deploy
22+
- if: ${{ github.ref == 'refs/heads/master' }}
23+
name: Deploy
2424
run: blog deploy

0 commit comments

Comments
 (0)