From c1052b6c1dfe4d51f9cab419c293726b5426902b Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 3 Dec 2021 20:14:48 +0100 Subject: [PATCH] only trigger version number if pullrequest --- .github/workflows/qc_checks.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index ebf375629a..0687bd5083 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -29,13 +29,14 @@ jobs: check_version: name: version number runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout Code uses: actions/checkout@v2 - name: Check version number 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: name: PEP style (python)