From eb64874c478fa7b6b97b0f893b3d349ebabc16f0 Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 29 Oct 2024 15:13:36 +0100 Subject: [PATCH] fix: minor adjustment to the pipeline --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32cc355..3bc80e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ on: jobs: lint: runs-on: ubuntu-latest + if: github.ref_name != 'master' steps: - uses: actions/checkout@v4 - uses: psf/black@stable @@ -35,6 +36,7 @@ jobs: test: runs-on: ubuntu-latest needs: lint + if: github.ref_name != 'master' steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -46,7 +48,7 @@ jobs: tag_and_publish: runs-on: ubuntu-latest - if: github.ref_name == 'dev' || github.ref_name == 'master' && github.event_name == 'push' + if: github.ref_name == 'dev' || github.ref_name == 'master' needs: test permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing