Skip to content

Commit

Permalink
post comment update
Browse files Browse the repository at this point in the history
Signed-off-by: Ruchi Sharma <ruchsh@amazon.com>
  • Loading branch information
ruchidh committed Feb 13, 2025
1 parent 1c2ed95 commit 91b73be
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,20 @@ jobs:
echo "PERFORMANCE_MESSAGE=$(if [ -f ./cypress/performance_metrics.json ]; then jq -r 'to_entries | map("• ❌ **\(.key)**: \(.value)") | join("\n")' ./cypress/performance_metrics.json; else echo "No performance issues detected 🎉"; fi)" >> $GITHUB_ENV
if [ -f ./cypress/performance_metrics.json ]; then rm ./cypress/performance_metrics.json; fi
- name: Post Performance Comment on PR
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ inputs.pr_number }}
body: |
🚀 **Component Performance Metrics**
The following performance metrics exceeded their thresholds:
${{ env.PERFORMANCE_MESSAGE }}
🔍 **Please review and optimize if necessary.**
reactions: 'eyes,rocket'

# Screenshots are only captured on failure, will change this once we do visual regression tests
- name: Upload FT repo screenshots
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -358,17 +372,3 @@ jobs:
#### Link to results:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
edit-mode: replace

- name: Post Performance Comment on PR
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ inputs.pr_number }}
body: |
🚀 **Component Performance Metrics**
The following performance metrics exceeded their thresholds:
${{ env.PERFORMANCE_MESSAGE }}
🔍 **Please review and optimize if necessary.**
reactions: 'eyes,rocket'

0 comments on commit 91b73be

Please sign in to comment.