Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel previous CI workflow if new commit pushed #664

Closed
1 of 2 tasks
tisonkun opened this issue Jun 25, 2022 · 4 comments · Fixed by #667
Closed
1 of 2 tasks

Cancel previous CI workflow if new commit pushed #664

tisonkun opened this issue Jun 25, 2022 · 4 comments · Fixed by #667
Assignees
Labels
enhancement type enhancement good first issue Good for newcomers help wanted Good for newcomers

Comments

@tisonkun
Copy link
Member

Search before asking

  • I had searched in the issues and found no similar issues.

Motivation

So that we don't waste time to verify a previous commit - what we're interested in is the latest view.

Solution

Add the following snippet to kvrocks.yaml:

concurrency:
  group: ${{ github.ref }}-${{ github.workflow }}
  cancel-in-progress: true

See also https://github.com/apache/pulsar/blob/b23689930e3af65cfc913e2890164a071acda440/.github/workflows/pulsar-ci.yaml#L29-L31.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@tisonkun tisonkun added enhancement type enhancement help wanted Good for newcomers good first issue Good for newcomers labels Jun 25, 2022
@tisonkun
Copy link
Member Author

@Xuanwo
Copy link
Member

Xuanwo commented Jun 25, 2022

Let me take this issue.

Ideally, this will be my first contribution to Apache project.

@tisonkun
Copy link
Member Author

@Xuanwo Thanks!

I'll assign to you. Go ahead!

@git-hulk
Copy link
Member

I love this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type enhancement good first issue Good for newcomers help wanted Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants