Skip to content

Commit d524f1a

Browse files
committed
Group if together
1 parent 6feca4b commit d524f1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/quality.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
towncrier:
208208
name: Towncrier check
209209
runs-on: ubuntu-latest
210-
if: github.head_ref == 'develop'
210+
if: github.event_name == 'pull_request' && github.head_ref == 'develop'
211211
steps:
212212
- uses: actions/checkout@v3
213213
- name: Set up Python 3.8
@@ -226,4 +226,3 @@ jobs:
226226
towncrier check --compare-with origin/${BASE_BRANCH}
227227
env:
228228
BASE_BRANCH: ${{ github.base_ref }}
229-
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)