From 46895a48ab957b7ebf48e40dab737c9f1f1590e8 Mon Sep 17 00:00:00 2001 From: IsraelMiles Date: Wed, 13 Apr 2022 13:40:31 -0700 Subject: [PATCH] prevent race condition by enforcing concurrency cancellation on issue number --- .github/workflows/gh-sync.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gh-sync.yml b/.github/workflows/gh-sync.yml index 2e0beb45122..68f04b52b89 100644 --- a/.github/workflows/gh-sync.yml +++ b/.github/workflows/gh-sync.yml @@ -5,6 +5,10 @@ on: types: [closed, edited, deleted, reopened, assigned, unassigned, labeled, unlabeled] issue_comment: +concurrency: + group: ${{ github.event.issue.number }} + cancel-in-progress: true + jobs: sync-issues: name: Run gh-sync from GitHub action