瀏覽代碼

CI: Update github.ref to github.ref_name

See https://github.blog/changelog/2023-09-13-github-actions-updates-to-github_ref-and-github-ref
Max Hilbrunner 6 月之前
父節點
當前提交
1b429b4c35
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/sync_class_ref.yml

+ 1 - 1
.github/workflows/ci.yml

@@ -5,7 +5,7 @@ on:
   pull_request:
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
   cancel-in-progress: true
 
 jobs:

+ 1 - 1
.github/workflows/sync_class_ref.yml

@@ -11,7 +11,7 @@ on:
 
 # Make sure jobs cannot overlap.
 concurrency:
-  group: classref-sync-ci-master
+  group: classref-sync-ci-${{ github.ref_name }}
   cancel-in-progress: true
 
 jobs: