From 5ab98c2740f1fccf255f73852cbb89375f1d3675 Mon Sep 17 00:00:00 2001 From: Morris Brodersen Date: Sun, 23 Jun 2024 16:28:45 +0200 Subject: [PATCH] fix #13 --- .github/workflows/pipeline.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index aa7f80f..814dcac 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,12 +1,9 @@ name: Pipeline -on: - push: - branches: - - main +on: push jobs: - checks: + check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -23,7 +20,8 @@ jobs: env: CI: true deploy: - needs: checks + if: github.ref == 'refs/heads/main' + needs: check permissions: pages: write id-token: write