Skip to content

Commit

Permalink
Update sum-upload-coverage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube authored Jul 21, 2024
1 parent 5fa6837 commit 8eba5df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sum-upload-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [[ "$GITHUB_PULL_REQUEST" != "pull_request" ]] && [[ $GITHUB_TEST_RESULT == 'success' ]]
if [[ "$GITHUB_PULL_REQUEST" == "pull_request" ]] && [[ $GITHUB_TEST_RESULT == 'success' ]]
then
rm -rf ../coverage/*
aws s3 cp --recursive s3://check-api-travis/codeclimate/$GITHUB_REPO_SLUG/$GITHUB_BUILD_NUMBER/ ../coverage
Expand Down Expand Up @@ -41,4 +41,4 @@ fi
# cat ../coverage/codeclimate.json | ./cc-test-reporter upload-coverage --input -
# ./cc-test-reporter show-coverage ../coverage/codeclimate.json
# fi
# fi
# fi

0 comments on commit 8eba5df

Please sign in to comment.