From e3e4cc3451cc36c735a9184163a005c158cc4bc2 Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Thu, 20 May 2021 13:24:22 +0300 Subject: [PATCH 1/2] trigger pr-labels workflow when labels added/removed from PR Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- .github/workflows/pr-labels.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index d6be2c3c89c..57cd74a403f 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -1,5 +1,9 @@ name: pr-labels -on: [push, pull_request, label] +on: + push + pull_request: + types: [opened, labeled, unlabeled, synchronize] + label jobs: analyze: if: github.repository == 'vitessio/vitess' From f50ed47c80babe0945268db8b336701dbb422a04 Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Thu, 20 May 2021 13:32:37 +0300 Subject: [PATCH 2/2] yaml syntax Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- .github/workflows/pr-labels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index 57cd74a403f..7052780882f 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -1,9 +1,9 @@ name: pr-labels on: - push pull_request: types: [opened, labeled, unlabeled, synchronize] - label + push: + label: jobs: analyze: if: github.repository == 'vitessio/vitess'