Эх сурвалжийг харах

actions: auto cancel builds if user pushes another commit (#10991)

George Adams 4 жил өмнө
parent
commit
ab4eed6c03

+ 5 - 0
.github/workflows/test-pr.yml

@@ -10,6 +10,11 @@ defaults:
 env:
   # https://github.com/docker-library/bashbrew/issues/10
   GIT_LFS_SKIP_SMUDGE: 1
+  
+# cancel existing runs if user makes another push
+concurrency:
+  group: ${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
 
 jobs: