From 0e0e1b4ae770761f883bef6ecc177f04e2be383e Mon Sep 17 00:00:00 2001 From: Jirka Kremser Date: Wed, 1 Nov 2023 12:49:01 +0100 Subject: [PATCH] Skip terratest for renovate PRs Signed-off-by: Jirka Kremser --- .github/workflows/terratest.yaml | 5 ++++- .github/workflows/upgrade-testing.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terratest.yaml b/.github/workflows/terratest.yaml index 4645a02a76..5d0f0e2de7 100644 --- a/.github/workflows/terratest.yaml +++ b/.github/workflows/terratest.yaml @@ -10,6 +10,9 @@ on: pull_request: branches: - master + # The specific activity types are listed here to include "labeled" and "unlabeled" + # (which are not included by default for the "pull_request" trigger). + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] paths-ignore: - '**.md' - '**.svg' @@ -41,7 +44,7 @@ jobs: terratest: runs-on: ubuntu-22.04 needs: skip-check - if: ${{ needs.skip-check.outputs.should_skip != 'true' }} + if: ${{ needs.skip-check.outputs.should_skip != 'true' }} && !contains( github.event.pull_request.labels.*.name, 'renovate') steps: - uses: actions/checkout@8530928916aaef40f59e6f221989ccb31f5759e7 with: diff --git a/.github/workflows/upgrade-testing.yaml b/.github/workflows/upgrade-testing.yaml index 69d2d52e87..0172ec35d1 100644 --- a/.github/workflows/upgrade-testing.yaml +++ b/.github/workflows/upgrade-testing.yaml @@ -10,6 +10,9 @@ on: pull_request: branches: - master + # The specific activity types are listed here to include "labeled" and "unlabeled" + # (which are not included by default for the "pull_request" trigger). + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] paths-ignore: - '**.md' - '**.svg' @@ -41,7 +44,7 @@ jobs: upgrade-testing: runs-on: ubuntu-22.04 needs: skip-check - if: ${{ needs.skip-check.outputs.should_skip != 'true' }} + if: ${{ needs.skip-check.outputs.should_skip != 'true' }} && !contains( github.event.pull_request.labels.*.name, 'renovate') steps: - uses: actions/checkout@8530928916aaef40f59e6f221989ccb31f5759e7 with: