From d0d27f697101e45cf3c8c8b3f762af4bb1396626 Mon Sep 17 00:00:00 2001 From: zhouzhuojie Date: Thu, 19 Aug 2021 15:37:10 -0700 Subject: [PATCH] Add concurrency group for more workflows (#63606) Summary: Fixes unnecessary duplicated workflows runs ![image](https://user-images.githubusercontent.com/658840/130146332-ecf54e49-3538-49c1-88de-b099f1c1e41f.png) Pull Request resolved: https://github.com/pytorch/pytorch/pull/63606 Reviewed By: malfet, mruberry Differential Revision: D30436889 Pulled By: zhouzhuojie fbshipit-source-id: aafbad1edc45e3ab9bceb00e8f3b4204f18e43d0 --- .github/workflows/add_annotations.yml | 6 ++++++ .github/workflows/auto_label.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/add_annotations.yml b/.github/workflows/add_annotations.yml index 40c2677aaf..9bb3c1b46e 100644 --- a/.github/workflows/add_annotations.yml +++ b/.github/workflows/add_annotations.yml @@ -7,6 +7,12 @@ on: workflows: - Lint + +concurrency: + group: add-annotations-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + + jobs: annotate: if: ${{ github.repository_owner == 'pytorch' }} diff --git a/.github/workflows/auto_label.yml b/.github/workflows/auto_label.yml index 24fc02eff1..1616ea9c90 100644 --- a/.github/workflows/auto_label.yml +++ b/.github/workflows/auto_label.yml @@ -6,6 +6,12 @@ on: pull_request_target: types: [edited, opened, synchronize, reopened] + +concurrency: + group: auto-label-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + + jobs: auto-label-rocm: if: ${{ github.repository_owner == 'pytorch' }} -- 2.34.1