From 78a636c318b73826125affbabedaf1de92d1395a Mon Sep 17 00:00:00 2001 From: Nicolae Dicu Date: Mon, 29 Sep 2025 10:42:35 +0300 Subject: [PATCH] ci: fix docs workflow Fix dac version check issue on merge to main. Version check should run only on PR. Signed-off-by: Nicolae Dicu --- .github/workflows/docs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bfd2e61765..7002bc07ef 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -49,7 +49,9 @@ jobs: with: ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }} repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} + - name: Verify Doc-as-Code version + if: ${{ github.event_name == 'pull_request_target' }} id: doc_version run: | if python3 .github/scripts/check_doc_tool_version.py \ @@ -63,6 +65,7 @@ jobs: fi - name: Find Comment + if: ${{ github.event_name == 'pull_request_target' }} uses: peter-evans/find-comment@v3 id: fc with: