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>
This commit is contained in:
Harsh Shandilya 2020-12-07 13:11:49 +05:30
parent 2e43d77c5c
commit 32e1ce17d0
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -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