Skip to content

Commit

Permalink
for testing pr mode locally
Browse files Browse the repository at this point in the history
  • Loading branch information
qododavid committed Jan 29, 2025
1 parent 7af87eb commit 4841e96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/qodo-cover-pr/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e
BINARY_PATH="/usr/local/bin/cover-agent-pro"
REPORT_DIR="/tmp"
REPORT_PATH="$REPORT_DIR/report.txt"
MODIFIED_FILES_JSON="/tmp/modified-files.json"

LOCAL=${LOCAL:-false}

Expand All @@ -29,6 +28,12 @@ while [[ "$#" -gt 0 ]]; do
shift
done

if [ "$LOCAL" = "false" ]; then
MODIFIED_FILES_JSON="/tmp/modified-files.json"
else
MODIFIED_FILES_JSON="$GITHUB_WORKSPACE/$PROJECT_ROOT/modified-files.json"
fi

# Install system dependencies
if ! (command -v wget >/dev/null && command -v sqlite3 >/dev/null && command -v jq >/dev/null); then
echo "Installing system dependencies..."
Expand Down

0 comments on commit 4841e96

Please sign in to comment.