Skip to content

Commit 6543499

Browse files
committed
fix jq
1 parent 8de6783 commit 6543499

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ jobs:
5151
github_token: ${{ secrets.GITHUB_TOKEN }}
5252

5353
- name: Display specific project results
54+
env:
55+
EXPIRING_FLAGS: ${{ steps.specific-test.outputs.expiring_flags }}
56+
PAST_DUE_FLAGS: ${{ steps.specific-test.outputs.past_due_flags }}
5457
run: |
5558
echo "Specific Project Test Results:"
5659
echo "Total flags with expiry dates: ${{ steps.specific-test.outputs.total_count }}"
57-
echo "Expiring flags: $(echo '${{ steps.specific-test.outputs.expiring_flags }}' | jq length)"
58-
echo "Past due flags: $(echo '${{ steps.specific-test.outputs.past_due_flags }}' | jq length)"
60+
echo "Expiring flags: $(echo "$EXPIRING_FLAGS" | jq -r 'length')"
61+
echo "Past due flags: $(echo "$PAST_DUE_FLAGS" | jq -r 'length')"
5962
6063
# Integration test for all projects without issue creation
6164
integration-test-all-projects:
@@ -77,9 +80,12 @@ jobs:
7780
create_issues: 'false'
7881

7982
- name: Display all projects results
83+
env:
84+
EXPIRING_FLAGS: ${{ steps.all-projects-test.outputs.expiring_flags }}
85+
PAST_DUE_FLAGS: ${{ steps.all-projects-test.outputs.past_due_flags }}
8086
run: |
8187
echo "All Projects Test Results:"
8288
echo "Total flags with expiry dates: ${{ steps.all-projects-test.outputs.total_count }}"
83-
echo "Expiring flags: $(echo '${{ steps.all-projects-test.outputs.expiring_flags }}' | jq length)"
84-
echo "Past due flags: $(echo '${{ steps.all-projects-test.outputs.past_due_flags }}' | jq length)"
89+
echo "Expiring flags: $(echo "$EXPIRING_FLAGS" | jq -r 'length')"
90+
echo "Past due flags: $(echo "$PAST_DUE_FLAGS" | jq -r 'length')"
8591

0 commit comments

Comments
 (0)