From f6977157a6c2bb3415601cc38a4207dbc48c8c1d Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 1 Jul 2022 21:33:25 +0800 Subject: [PATCH] ci: fix concurrency issue (#1356) --- .github/workflows/integration-test.yml | 2 +- .github/workflows/main.yml | 2 +- .github/workflows/upload-annotations.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index f255583b5..9d2647402 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -7,7 +7,7 @@ on: pull_request: concurrency: - group: integration-test-${{ github.ref }} + group: integration-test-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27f027d2d..34c4fc202 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: pull_request: concurrency: - group: main-${{ github.ref }} + group: main-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/upload-annotations.yml b/.github/workflows/upload-annotations.yml index a60fa816d..7b8bdc370 100644 --- a/.github/workflows/upload-annotations.yml +++ b/.github/workflows/upload-annotations.yml @@ -7,7 +7,7 @@ on: branches: [master] concurrency: - group: upload-annotations-${{ github.ref }} + group: upload-annotations-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: