Directory/path management in ruby is very clunky due to historical reasons.
I've found success in using File.expand_path
to expand the full path correctly relative to the current directory __dir__
(/Users/you/ProjectRoot/fastlane/
)
File.read(File.expand_path("./shared_metadata/release_notes.txt", __dir__))