maxsxu opened a new pull request, #16060: URL: https://github.com/apache/pulsar/pull/16060
Fixes #16046 ### Motivation Multiple workflows can be running concurrently while `labeled` event triggered instantly after `opened` event before the docbot workflow is running. This scenario will cause an inconsistent state of action and confused results. ### Modifications Added [`concurrency`](https://docs.github.com/en/actions/using-jobs/using-concurrency) - `concurrency.group` means workflow using the same concurrency group will be pending - `concurrency.cancel-in-progress` will cancel any currently running job or workflow in the same concurrency group. This option can resolve the inconsistent state issue. ### Tests The demo can be found at https://github.com/open-github/pulsar/pull/12  And the workflow status <img width="935" alt="image" src="https://user-images.githubusercontent.com/15963141/173613609-643b9163-eb16-4125-8cfa-1f58aecd499d.png"> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
