Skip to content

Commit

Permalink
sh echo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Aug 6, 2024
1 parent d775ad3 commit 93d5974
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-sample-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
working-directory: "apps/${{ matrix.sample-app }}"

- name: Generate New Version
id: generate_version
uses: maierj/[email protected]
with:
subdirectory: "apps/${{ matrix.sample-app }}"
Expand All @@ -62,19 +61,19 @@ 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/[email protected]
with:
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
Expand Down
6 changes: 3 additions & 3 deletions apps/amiapp_flutter/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93d5974

Please sign in to comment.