summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-12-07 13:11:49 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-12-07 13:36:13 +0530
commit32e1ce17d053ff5860b2ccc9ad9522af822a8950 (patch)
treeeb77b9b13601184ef595c9d3a800cdc52ea8939a
parent2e43d77c5c72a0111445317a3d88e53a8b4b6782 (diff)
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 <me@msfjarvis.dev>
-rw-r--r--.github/workflows/pull_request.yml3
1 files changed, 3 insertions, 0 deletions
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