From 3b97b5a7876094bacd9fbee46952f1eaf01d5d87 Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Fri, 2 Aug 2024 15:53:24 +0200 Subject: [PATCH 1/2] Refine triggers to avoid replicated runs on PRs --- .github/workflows/automatic-doc-checks.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automatic-doc-checks.yml b/.github/workflows/automatic-doc-checks.yml index a6eb0ab7..3c21d51d 100644 --- a/.github/workflows/automatic-doc-checks.yml +++ b/.github/workflows/automatic-doc-checks.yml @@ -1,9 +1,12 @@ name: Main Documentation Checks on: - - push - - pull_request - - workflow_dispatch + push: + branches: [ main ] + pull_request: + branches: [ main ] + # Manual trigger + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,4 +16,4 @@ jobs: documentation-checks: uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main with: - working-directory: '.' \ No newline at end of file + working-directory: '.' From 44353105c9eba0be2d74cf1e237526e6615ca2d0 Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Thu, 8 Aug 2024 15:48:47 +0200 Subject: [PATCH 2/2] Remove branch restriction for PR trigger --- .github/workflows/automatic-doc-checks.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/automatic-doc-checks.yml b/.github/workflows/automatic-doc-checks.yml index 3c21d51d..f7a576c9 100644 --- a/.github/workflows/automatic-doc-checks.yml +++ b/.github/workflows/automatic-doc-checks.yml @@ -4,7 +4,6 @@ on: push: branches: [ main ] pull_request: - branches: [ main ] # Manual trigger workflow_dispatch: