]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: only run docs workflow on the main repo
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 16 Nov 2025 16:49:46 +0000 (17:49 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 16 Nov 2025 16:50:44 +0000 (17:50 +0100)
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-only-run-job-for-specific-repository

.github/workflows/docs.yml

index 59e53d9448713e93f9b481d20076c4e9f6cf17c4..b3c08a8b98cda144b16511ccf70419f243122526 100644 (file)
@@ -13,6 +13,7 @@ concurrency:
 jobs:
   docs:
     runs-on: ubuntu-latest
+    if: github.repository == 'psycopg/psycopg'
     steps:
       - name: Trigger docs build
         uses: peter-evans/repository-dispatch@v4