This is an automated email from the ASF dual-hosted git repository. leonard pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
The following commit(s) were added to refs/heads/master by this push: new 990261da6 [hotfix][ci] Polish ci concurrency group to avoid warning message 990261da6 is described below commit 990261da60cce4b8b3c72c98419f3bf33bbb80b0 Author: gongzhongqiang <gongzhongqi...@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