From 5214b580738b14019129f2c31d5c4813e010ba8a Mon Sep 17 00:00:00 2001 From: ivica-k Date: Fri, 4 Aug 2023 16:59:43 +0200 Subject: [PATCH] chore(maintenance): enables publishing docs and changelog, running e2e tests only in the main repository this prevents said actions to run in forked repositories. they are not configured to perform said actions and they will fail --- .github/workflows/reusable_publish_changelog.yml | 1 + .github/workflows/reusable_publish_docs.yml | 1 + .github/workflows/run-e2e-tests.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable_publish_changelog.yml b/.github/workflows/reusable_publish_changelog.yml index 1df1ceb5953..0a678d9ee7d 100644 --- a/.github/workflows/reusable_publish_changelog.yml +++ b/.github/workflows/reusable_publish_changelog.yml @@ -15,6 +15,7 @@ permissions: jobs: publish_changelog: + if: github.repository == 'aws-powertools/powertools-lambda-python' # Force Github action to run only a single job at a time (based on the group name) # This is to prevent race-condition and inconsistencies with changelog push concurrency: diff --git a/.github/workflows/reusable_publish_docs.yml b/.github/workflows/reusable_publish_docs.yml index 83f5198f1a9..8d86664d87e 100644 --- a/.github/workflows/reusable_publish_docs.yml +++ b/.github/workflows/reusable_publish_docs.yml @@ -32,6 +32,7 @@ permissions: jobs: publish_docs: + if: github.repository == 'aws-powertools/powertools-lambda-python' # Force Github action to run only a single job at a time (based on the group name) # This is to prevent "race-condition" in publishing a new version of doc to `gh-pages` concurrency: diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml index af6e884041b..94e5f02e5c7 100644 --- a/.github/workflows/run-e2e-tests.yml +++ b/.github/workflows/run-e2e-tests.yml @@ -48,7 +48,7 @@ jobs: fail-fast: false # needed so if a version fails, the others will still be able to complete and cleanup matrix: version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'aws-powertools/powertools-lambda-python' }} steps: - name: "Checkout" uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3