Skip to content

Commit da18dba

Browse files
committed
fix check
1 parent bea0477 commit da18dba

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/project-automation.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ jobs:
2525
field: Status
2626
operation: read
2727

28-
- name: PR is not in project
29-
if: failure()
30-
run: echo "is_in_project=0" >> "$GITHUB_OUTPUT"
31-
3228
- name: PR is in project
33-
if: success()
29+
if: steps.check_project.outputs.field_read_value
30+
id: is_in_project
3431
run: echo "is_in_project=1" >> "$GITHUB_OUTPUT"
3532

3633
outputs:
37-
is_in_project: '${{ steps.check_project.outputs.is_in_project }}'
34+
is_in_project: ${{ steps.is_in_project.outputs.is_in_project || '0' }}
3835

3936
# When a PR is a draft, it should go into "In Progress"
4037
mark_as_in_progress:

0 commit comments

Comments
 (0)