You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by re...@apache.org on 2024/04/26 02:19:19 UTC
(flink-cdc) 02/02: [hotfix][ci] Polish ci concurrency group to avoid warning message
This is an automated email from the ASF dual-hosted git repository.
renqs pushed a commit to branch release-3.1
in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
commit 5096dc73a17279954a61c98b290575c779978311
Author: gongzhongqiang <go...@apache.org>
AuthorDate: Wed Apr 24 16:47:48 2024 +0800
[hotfix][ci] Polish ci concurrency group to avoid warning message
This closes #3241.
---
.github/workflows/flink_cdc.yml | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/flink_cdc.yml b/.github/workflows/flink_cdc.yml
index 1700d9a74..85ad4b3b1 100644
--- a/.github/workflows/flink_cdc.yml
+++ b/.github/workflows/flink_cdc.yml
@@ -30,8 +30,17 @@ on:
- 'docs/**'
- 'README.md'
+# Concurrency strategy:
+# github.workflow: distinguish this workflow from others
+# github.event_name: distinguish `push` event from `pull_request` event
+# github.event.number: set to the number of the pull request if `pull_request` event
+# github.run_id: otherwise, it's a `push` or `schedule` event, only cancel if we rerun the workflow
+#
+# Reference:
+# https://docs.github.com/en/actions/using-jobs/using-concurrency
+# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
+ group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
env:
@@ -151,7 +160,7 @@ jobs:
cache: 'maven'
- name: Set Maven 3.8.6
- uses: stCarolas/setup-maven@v4.5
+ uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.6