فهرست منبع

Use fallback value

onevcat 1 سال پیش
والد
کامیت
31ba242994
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      .github/workflows/build.yaml
  2. 2 2
      .github/workflows/test.yaml

+ 2 - 2
.github/workflows/build.yaml

@@ -2,8 +2,8 @@ name: build
 
 on: [push, pull_request]
 
-concurrency: 
-  group: ${{ github.head_ref }}
+concurrency:
+  group: ${{ github.head_ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:

+ 2 - 2
.github/workflows/test.yaml

@@ -2,8 +2,8 @@ name: test
 
 on: [push, pull_request]
 
-concurrency: 
-  group: ${{ github.head_ref }}
+concurrency:
+  group: ${{ github.head_ref || github.run_id }}
   cancel-in-progress: true
 
 jobs: