From 3540ba1d9ad7bc21df2e49fc723ccec3b4541f71 Mon Sep 17 00:00:00 2001 From: Miha Drofenik Date: Mon, 1 Apr 2024 20:31:03 +0200 Subject: [PATCH] Workflow updated --- .github/workflows/build.yml | 4 ++-- fastlane/Fastfile | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd50230..a283f86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/cancel-workflow-action@0.12.0 - name: Checkout repo from dev branch @@ -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/cancel-workflow-action@0.12.0 - name: Checkout repo from dev branch diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 8f8e694..0527cc9 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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:" @@ -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( @@ -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