From afbe803aa1ea337fc2c54417f0458240ffe7cc8b Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 11 Dec 2024 12:02:52 +0200 Subject: [PATCH 1/2] Trigger workflow on all opened issues --- .github/workflows/project-board-update.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/project-board-update.yml b/.github/workflows/project-board-update.yml index 521eb85e0..3938e7b3c 100644 --- a/.github/workflows/project-board-update.yml +++ b/.github/workflows/project-board-update.yml @@ -3,10 +3,15 @@ on: issues: types: - labeled + # Issues opened by recurrent workflows don't trigger a labeled event + # so we check opened issues as well + - opened jobs: update-project-board-fields: - if: github.event.label.name == 'recurrent' + if: > + (github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'recurrent')) || + (github.event.action == 'labeled' && github.event.label.name == 'recurrent') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 5e0ee100371bcc83b1ba9479cd434b77c1503418 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 11 Dec 2024 12:04:53 +0200 Subject: [PATCH 2/2] Use double quotes for consistency --- .github/workflows/project-board-update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/project-board-update.yml b/.github/workflows/project-board-update.yml index 3938e7b3c..fcff1ff8f 100644 --- a/.github/workflows/project-board-update.yml +++ b/.github/workflows/project-board-update.yml @@ -10,8 +10,8 @@ on: jobs: update-project-board-fields: if: > - (github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'recurrent')) || - (github.event.action == 'labeled' && github.event.label.name == 'recurrent') + (github.event.action == "opened" && contains(github.event.issue.labels.*.name, "recurrent")) || + (github.event.action == "labeled" && github.event.label.name == "recurrent") runs-on: ubuntu-latest steps: - uses: actions/checkout@v4