1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-11-23 03:22:23 +03:00

Merge pull request #770 from per1234/fix-concurrency

Avoid manager workflow run cancelation by incidental events
This commit is contained in:
per1234
2021-12-09 02:42:44 -08:00
committed by GitHub

View File

@@ -26,7 +26,19 @@ on:
concurrency:
group: ${{ github.event.pull_request.number }}${{ github.event.issue.number }}
cancel-in-progress: true
cancel-in-progress: >-
${{
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.draft == false
) ||
(
github.event_name == 'issue_comment' &&
github.event.issue.pull_request != '' &&
github.event.issue.state == 'open' &&
contains(github.event.comment.body, 'ArduinoBot')
)
}}
jobs:
diff: