Gitlab Pipeline running infinitely for a commit from past

I had pushed a change in which I changed a file name. Now, my project’s pipeline is running infinitely for that commit A and not running a build for my current commit B. But if I explicitly click on “Run pipeline”, then only its running current commit B and once its executed, the pipeline restarts running that old commit A. Is something wrong with the gitlab runner? I have used “Curl” command for API access in my .gitlab-ci.yml file. Added exit 0 at the end. Please let me know how to fix the issue.