File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 3434 run : |
3535 # Pull the Docker image and run it with port forwarding
3636 docker pull tsantalis/refactoringminer
37-
38- container_id=$(docker run -d --env OAuthToken=${{ secrets.OAUTHTOKEN }} -p 6789:6789 tsantalis/refactoringminer diff --url "${{ steps.check_diff.outputs.url }}")
39- # Tail the logs and stop once the "Starting server" message appears
40- echo "Tailing logs for container $container_id..."
41- docker logs -f $container_id | while read -r line; do
42- echo "$line"
43- if [[ "$line" == *"Starting server"* ]]; then
44- echo "Server started. Stopping log output."
45- break
46- fi
47- done
48-
49- # Optionally, print the final logs after stopping
50- echo "Final logs after detecting server start:"
51- docker logs $container_id
37+ docker run -d --env OAuthToken=${{ secrets.OAUTHTOKEN }} -p 6789:6789 tsantalis/refactoringminer diff --url "${{ steps.check_diff.outputs.url }}")
5238
5339 # Step 2: Install ngrok
5440 - name : Install ngrok
You can’t perform that action at this time.
0 commit comments