only trigger version number if pullrequest

This commit is contained in:
Matthias 2021-12-03 20:14:48 +01:00
parent 63f6776e83
commit c1052b6c1d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -29,13 +29,14 @@ jobs:
check_version: check_version:
name: version number name: version number
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Check version number - name: Check version number
run: | run: |
python3 ci/check_version_number.py --branch ${{ github.base_ref || github.ref }} python3 ci/check_version_number.py --branch ${{ github.base_ref }}
pep_style: pep_style:
name: PEP style (python) name: PEP style (python)