From 438dc8c1a314c1d1bfa8ff79af552137da850d28 Mon Sep 17 00:00:00 2001 From: Balazs Nadasdi Date: Wed, 3 Nov 2021 14:02:54 +0100 Subject: [PATCH] try again with ref --- .github/workflows/deploy-docs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 1791d15f..8058cbf8 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -8,7 +8,7 @@ on: jobs: checks: - if: github.event_name != 'push' + if: github.ref != 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -21,7 +21,7 @@ jobs: - name: Build docks run: make docs-build gh-release: - if: github.event_name != 'pull_request' + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v1