From 42c0dd861fdcd50bddca63feddc8c5317c586527 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Mon, 9 Sep 2024 13:38:33 +0200 Subject: [PATCH] fix check --- .github/workflows/project-automation.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/project-automation.yml b/.github/workflows/project-automation.yml index 1c738a659f45..a1a1db996f89 100644 --- a/.github/workflows/project-automation.yml +++ b/.github/workflows/project-automation.yml @@ -25,16 +25,13 @@ jobs: field: Status operation: read - - name: PR is not in project - if: failure() - run: echo "is_in_project=0" >> "$GITHUB_OUTPUT" - - name: PR is in project - if: success() + if: steps.check_project.outputs.field_read_value + id: is_in_project run: echo "is_in_project=1" >> "$GITHUB_OUTPUT" outputs: - is_in_project: '${{ steps.check_project.outputs.is_in_project }}' + is_in_project: ${{ steps.is_in_project.outputs.is_in_project || '0' }} # When a PR is a draft, it should go into "In Progress" mark_as_in_progress: