Skip to content

Commit

Permalink
block pr merge
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 21, 2025
1 parent 2e72249 commit ccb9f57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@ jobs:
retention-days: 1
overwrite: true

- name: Fail Performance Metrics Check
if: env.PERFORMANCE_MESSAGE != 'No performance issues detected 🎉'
run: |
echo "Performance metrics exceeded the threshold. Blocking PR merge!"
exit 1
add-comment:
needs: [cypress-tests]
if: ${{ always() && github.event_name == 'workflow_dispatch' && inputs.pr_number != '' }}
Expand Down

0 comments on commit ccb9f57

Please sign in to comment.