Skip to content

Commit

Permalink
Workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Burzo committed Apr 1, 2024
1 parent 0b184cf commit 3540ba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- name: Add release notes
run: |
echo -n "${{ needs.extract-version.outputs.release_notes }}" > ./release_notes.txt
echo -n "${{ needs.extract-version.outputs.release_notes }}" > ./fastlane/release_notes.txt
- name: Cancel previous runs
uses: styfle/[email protected]
- name: Checkout repo from dev branch
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
steps:
- name: Add release notes
run: |
echo -n "${{ needs.extract-version.outputs.release_notes }}" > ./release_notes.txt
echo -n "${{ needs.extract-version.outputs.release_notes }}" > ./fastlane/release_notes.txt
- name: Cancel previous runs
uses: styfle/[email protected]
- name: Checkout repo from dev branch
Expand Down
8 changes: 4 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ platform :ios do
lane :build_release do

# Check if the release_notes.txt file exists
if File.exist?("../release_notes.txt")
if File.exist?("./fastlane/release_notes.txt")
# Read the contents of the file
release_notes_content = File.read("../release_notes.txt")
release_notes_content = File.read("./fastlane/release_notes.txt")

# Print the contents of the file
puts "Release Notes:"
Expand Down Expand Up @@ -78,7 +78,7 @@ platform :ios do
app: ENV["APP_ID"],
service_credentials_file: "./fastlane/wildlife-watcher-service-account.json",
testers: ENV['TESTERS'],
release_notes_file: './release_notes.txt'
release_notes_file: './fastlane/release_notes.txt'
)

build_ios_app(
Expand Down Expand Up @@ -119,7 +119,7 @@ platform :android do
android_artifact_path: "./android/app/build/outputs/apk/release/app-release.apk",
service_credentials_file: "./fastlane/wildlife-watcher-service-account.json",
testers: ENV['TESTERS'],
release_notes_file: './release_notes.txt'
release_notes_file: './fastlane/release_notes.txt'
)

# Will add once the app is uploaded
Expand Down

0 comments on commit 3540ba1

Please sign in to comment.