Skip to content

Commit 0ce3c13

Browse files
authored
Merge pull request #13 from DataRecce/feature/drc-396-document-provide-the-document-of-new-command-recce-summary
[Feature] Update Recce CI workflow script
2 parents 7f3f658 + ba7047c commit 0ce3c13

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/recce_ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
pip install -r requirements.txt
2323
- name: Install Recce
2424
run: |
25-
pip install recce-nightly==0.15.0.20240426a389
25+
pip install recce-nightly==0.17.0.20240508a0
2626
- name: Add packages.yml file
2727
run: |
2828
echo '${{ vars.PACKAGES_YAML }}' > packages.yml
@@ -73,6 +73,15 @@ jobs:
7373
recce summary recce_state.json > recce_summary.md
7474
cat recce_summary.md >> $GITHUB_STEP_SUMMARY
7575
echo '${{ env.NEXT_STEP_MESSAGE }}' >> recce_summary.md
76+
77+
# Handle the case when the recce summary is too long to be displayed in the GitHub PR comment
78+
if [[ `wc -c recce_summary.md | awk '{print $1}'` -ge '65535' ]]; then
79+
echo '# Recce Summary
80+
The recce summary is too long to be displayed in the GitHub PR comment.
81+
Please check the summary detail in the [Job Summary](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) page.
82+
${{ env.NEXT_STEP_MESSAGE }}' > recce_summary.md
83+
fi
84+
7685
env:
7786
ARTIFACT_URL: ${{ steps.recce-artifact-uploader.outputs.artifact-url }}
7887
NEXT_STEP_MESSAGE: |

0 commit comments

Comments
 (0)