Is it possible to finish a pipeline before last step with success?

We use a third party software that sometimes alter some files.
I would like to finish my pipeline before last step which is a notification step so that my coworkers only get a notification when a file actually changed.

My pipeline configuration is something like:

  - name: build
      - build_my_app

  - name: notify
      - notify_my_coworkers

In case the build step didn’t changed any file in my project I would like the pipeline to not run the notify step. Is it possible?

You may add one additional step that checks the file and do this command when it was not changed:

exit 78

See this FAQ note for details.

Thanks @tkushnir it worked