From 1ca50f2869b8340e4c16b5944aa994307dd4535d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 26 Oct 2024 23:38:02 +0200 Subject: [PATCH] fixed deploy-demo running on pull requests --- .github/workflows/web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 1fc0083..97bd89b 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -23,7 +23,7 @@ jobs: include-hidden-files: true if-no-files-found: error deploy-demo: - if: github.event_name == 'push' + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') needs: [build-demo] runs-on: ubuntu-latest steps: