فهرست منبع

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

George Adams 4 سال پیش
والد
کامیت
ab4eed6c03
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      .github/workflows/test-pr.yml

+ 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: