From 93d59740a75ad738181a3f3a839c342781dbffa2 Mon Sep 17 00:00:00 2001 From: Rehan Date: Tue, 6 Aug 2024 19:38:08 +0500 Subject: [PATCH] sh echo --- .github/workflows/build-sample-apps.yml | 13 ++++++------- apps/amiapp_flutter/fastlane/Fastfile | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-sample-apps.yml b/.github/workflows/build-sample-apps.yml index 429dd5c..25b5d93 100644 --- a/.github/workflows/build-sample-apps.yml +++ b/.github/workflows/build-sample-apps.yml @@ -49,7 +49,6 @@ jobs: working-directory: "apps/${{ matrix.sample-app }}" - name: Generate New Version - id: generate_version uses: maierj/fastlane-action@v3.1.0 with: subdirectory: "apps/${{ matrix.sample-app }}" @@ -62,9 +61,9 @@ jobs: lane: "update_flutter_sdk_version" subdirectory: "apps/${{ matrix.sample-app }}" env: - SDK_VERSION_NAME: ${{ steps.generate_version.outputs.SDK_VERSION_NAME }} - APP_VERSION_NAME: ${{ steps.generate_version.outputs.APP_VERSION_NAME }} - APP_VERSION_CODE: ${{ steps.generate_version.outputs.APP_VERSION_CODE }} + SDK_VERSION_NAME: ${{ env.SDK_VERSION_NAME }} + APP_VERSION_NAME: ${{ env.APP_VERSION_NAME }} + APP_VERSION_CODE: ${{ env.APP_VERSION_CODE }} - name: Update Sample App Version uses: maierj/fastlane-action@v3.1.0 @@ -72,9 +71,9 @@ jobs: lane: "update_flutter_app_version" subdirectory: "apps/${{ matrix.sample-app }}" env: - SDK_VERSION_NAME: ${{ steps.generate_version.outputs.SDK_VERSION_NAME }} - APP_VERSION_NAME: ${{ steps.generate_version.outputs.APP_VERSION_NAME }} - APP_VERSION_CODE: ${{ steps.generate_version.outputs.APP_VERSION_CODE }} + SDK_VERSION_NAME: ${{ env.SDK_VERSION_NAME }} + APP_VERSION_NAME: ${{ env.APP_VERSION_NAME }} + APP_VERSION_CODE: ${{ env.APP_VERSION_CODE }} - name: Install flutter dependencies run: flutter pub get diff --git a/apps/amiapp_flutter/fastlane/Fastfile b/apps/amiapp_flutter/fastlane/Fastfile index f79e386..5673c03 100644 --- a/apps/amiapp_flutter/fastlane/Fastfile +++ b/apps/amiapp_flutter/fastlane/Fastfile @@ -22,9 +22,9 @@ lane :generate_new_version do |options| app_version_code = time_in_millis UI.message("Generated new versions => SDK: #{sdk_version_name}, App: #{app_version_name} (#{app_version_code})") - puts "::set-output name=SDK_VERSION_NAME::#{sdk_version_name}" - puts "::set-output name=APP_VERSION_NAME::#{app_version_name}" - puts "::set-output name=APP_VERSION_CODE::#{app_version_code}" + sh("echo SDK_VERSION_NAME=#{sdk_version_name} >> $GITHUB_ENV") + sh("echo APP_VERSION_NAME=#{app_version_name} >> $GITHUB_ENV") + sh("echo APP_VERSION_CODE=#{app_version_code} >> $GITHUB_ENV") end # Helper method to update pubspec version