Skip to content

Commit

Permalink
Merge pull request #13 from DataRecce/feature/drc-396-document-provid…
Browse files Browse the repository at this point in the history
…e-the-document-of-new-command-recce-summary

[Feature] Update Recce CI workflow script
  • Loading branch information
kentwelcome authored May 8, 2024
2 parents 7f3f658 + ba7047c commit 0ce3c13
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/recce_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pip install -r requirements.txt
- name: Install Recce
run: |
pip install recce-nightly==0.15.0.20240426a389
pip install recce-nightly==0.17.0.20240508a0
- name: Add packages.yml file
run: |
echo '${{ vars.PACKAGES_YAML }}' > packages.yml
Expand Down Expand Up @@ -73,6 +73,15 @@ jobs:
recce summary recce_state.json > recce_summary.md
cat recce_summary.md >> $GITHUB_STEP_SUMMARY
echo '${{ env.NEXT_STEP_MESSAGE }}' >> recce_summary.md
# Handle the case when the recce summary is too long to be displayed in the GitHub PR comment
if [[ `wc -c recce_summary.md | awk '{print $1}'` -ge '65535' ]]; then
echo '# Recce Summary
The recce summary is too long to be displayed in the GitHub PR comment.
Please check the summary detail in the [Job Summary](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) page.
${{ env.NEXT_STEP_MESSAGE }}' > recce_summary.md
fi
env:
ARTIFACT_URL: ${{ steps.recce-artifact-uploader.outputs.artifact-url }}
NEXT_STEP_MESSAGE: |
Expand Down

0 comments on commit 0ce3c13

Please sign in to comment.