From 34e42c3da5514e72d845d43f9c18cce4c1bff869 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 2 Apr 2025 14:40:16 +0300 Subject: [PATCH] Added testing of documentation during push --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 04daf8be..043d4a78 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,8 +2,6 @@ name: Documentation on: push: - branches: - - main workflow_dispatch: permissions: @@ -64,6 +62,7 @@ jobs: needs: build name: Generate robots.txt runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - name: Create robots.txt @@ -92,6 +91,7 @@ jobs: name: Deploy to pages runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - name: Download docs artifact