Group if together
This commit is contained in:
parent
6feca4badf
commit
d524f1a7d4
|
@ -207,7 +207,7 @@ jobs:
|
||||||
towncrier:
|
towncrier:
|
||||||
name: Towncrier check
|
name: Towncrier check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.head_ref == 'develop'
|
if: github.event_name == 'pull_request' && github.head_ref == 'develop'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.8
|
||||||
|
@ -226,4 +226,3 @@ jobs:
|
||||||
towncrier check --compare-with origin/${BASE_BRANCH}
|
towncrier check --compare-with origin/${BASE_BRANCH}
|
||||||
env:
|
env:
|
||||||
BASE_BRANCH: ${{ github.base_ref }}
|
BASE_BRANCH: ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
|
|
Loading…
Reference in New Issue