From 4670544de9269853cce310dfd6a4c76682319796 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Wed, 4 Oct 2023 11:11:20 +0200 Subject: [PATCH] chore: Enable concuncurrency in PR workflows to skip unnecessary executions (#801) --- .github/workflows/e2e-tests.yaml | 4 ++++ .github/workflows/images.yaml | 4 ++++ .github/workflows/linkinator.yaml | 4 ++++ .github/workflows/tests.yaml | 4 ++++ CHANGELOG.md | 1 + 5 files changed, 17 insertions(+) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index a31ef33a..3aabecb4 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -5,6 +5,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: e2e_tests: runs-on: ubuntu-latest diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 6d693aef..831c6d19 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -3,6 +3,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build_scaler: runs-on: ubuntu-latest diff --git a/.github/workflows/linkinator.yaml b/.github/workflows/linkinator.yaml index 4ca8abdb..d57777aa 100644 --- a/.github/workflows/linkinator.yaml +++ b/.github/workflows/linkinator.yaml @@ -5,6 +5,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: linkinator: runs-on: ubuntu-20.04 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 407477fe..630de71f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,6 +5,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: validate: name: validate - ${{ matrix.name }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ecd267e..5f2c6f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ Previously announced deprecation(s): ### Other - **General**: Adding a changelog validating script to check for formatting and order ([#761](https://github.com/kedacore/http-add-on/pull/761)) +- **General**: Skip not required CI checks on PRs on new commits ([#801](https://github.com/kedacore/http-add-on/pull/801)) ## v0.5.0