Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read file from my repo with Fastlane?

I am using Fastlane to auto deploy my apk to hockeyApp. I am trying to upload the release notes with it, but I cant seem to read the file that is in the repo but fastlane cannot seem to find it. This is the crash report from the CI server. Thanks in advance.

 Error in your Fastfile at line 86
    [09:34:20]:     84:               hockey(api_token: release_token,
    [09:34:20]:     85:                      apk: apk_path,
    [09:34:20]:  => 86:                      notes: File.read(“./auto_deployment/release_notes.txt”))
    [09:34:20]:     87:     end
    [09:34:20]:     88: 
    [09:34:20]: No such file or directory @ rb_sysopen - ./auto_deployment/release_notes.txt
like image 563
Zeyad Gasser Avatar asked Jan 26 '23 18:01

Zeyad Gasser


1 Answers

You are in projectRoot/fastlane when you execute fastlane, so you need to write ../auto_deployment/release_notes.txt to access the file you want.

like image 163
rcarba Avatar answered Jan 29 '23 16:01

rcarba