From 32e1ce17d053ff5860b2ccc9ad9522af822a8950 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 7 Dec 2020 13:11:49 +0530 Subject: github: add auto-cancel-redundant-workflow Automatically cancels existing runs of a PR checking workflow to prevent redundant checks and wastage of resources. Signed-off-by: Harsh Shandilya --- .github/workflows/pull_request.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 945f1681..6cc597d8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,6 +9,9 @@ jobs: api-level: [23, 29] steps: + - name: Auto-cancel redundant workflow run + uses: technote-space/auto-cancel-redundant-workflow@f9dfa1c127a520e4d71b92892850f861fb861206 + - name: Check if relevant files have changed uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 id: service-changed -- cgit v1.2.3