Swathi DA
Swathi DA

Reputation: 47

How to set up concurrency at the workflow level?

I have a workflow that is triggered on the following events:

on:
  pull_request:
    types:
      - opened
      - synchronize
      
  pull_request_review:
    types:
      - submitted

If there are two jobs in queue with the synchronized event then the latest job needs to be considered and the other jobs in queue needs to be cancelled.

If there are two jobs waiting in the queue one with a pull request synchronized event and another with a pull request review event, how to set concurrency in such a way that the pull review review event gets triggered after the pull request synchronized event.

Upvotes: 1

Views: 149

Answers (0)

Related Questions