You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uniffle.apache.org by ro...@apache.org on 2022/09/19 02:20:53 UTC
[incubator-uniffle] branch master updated: Support cancelling previous ci actions (#225)
This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new 9f6b3e58 Support cancelling previous ci actions (#225)
9f6b3e58 is described below
commit 9f6b3e58f34ddb812dbfb86ab110ec76081ca611
Author: Junfan Zhang <ju...@outlook.com>
AuthorDate: Mon Sep 19 10:20:48 2022 +0800
Support cancelling previous ci actions (#225)
### What changes were proposed in this pull request?
Support cancelling previous ci actions when new commits are submitted.
### Why are the changes needed?
I hope the CI actions can always test the latest commits code and cancel the previous ci when new commits are submitted.
Refer to: https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
No need
Co-authored-by: Kaijie Chen <ck...@apache.org>
---
.github/workflows/build.yml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 46a8661d..acfaa55b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -21,6 +21,11 @@ name: build
on: [push, pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+
jobs:
checkstyle:
uses: ./.github/workflows/sequential.yml