How to set up concurrency at the workflow level?

111 Views Asked by At

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.

0

There are 0 best solutions below