diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-12-07 13:11:49 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-12-07 13:36:13 +0530 |
commit | 32e1ce17d053ff5860b2ccc9ad9522af822a8950 (patch) | |
tree | eb77b9b13601184ef595c9d3a800cdc52ea8939a /.github/workflows | |
parent | 2e43d77c5c72a0111445317a3d88e53a8b4b6782 (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>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pull_request.yml | 3 |
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 |