From 55c9e29f1f9ddbd90b1e2c47ddd4ae4e7f1b4402 Mon Sep 17 00:00:00 2001 From: Matteo Valentini Date: Tue, 10 Dec 2024 15:09:20 +0100 Subject: [PATCH] fix(workflow): run job only on open issues Add a conditional check to the `update-project-status` job in the GitHub Actions workflow. This ensures the job only runs when the issue state is 'open'. --- .github/workflows/change-status-on-labels.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/change-status-on-labels.yml b/.github/workflows/change-status-on-labels.yml index c0b4489..9f08075 100644 --- a/.github/workflows/change-status-on-labels.yml +++ b/.github/workflows/change-status-on-labels.yml @@ -11,6 +11,7 @@ permissions: jobs: update-project-status: + if: ${{ github.event.issue.state == 'open' }} runs-on: ubuntu-latest env: GH_TOKEN: ${{ github.token }}