Skip to content

Commit 6278e62

Browse files
authored
fix deployment scripts (#201)
1 parent 5731327 commit 6278e62

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.github/workflows/deploy-firebase-android.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ jobs:
5353
with:
5454
fetch-depth: 10
5555

56-
- name: check for changes in folders
57-
run: >
58-
echo "template-changes=$(git diff --quiet HEAD HEAD~1 --
59-
starport_template && echo "false" || echo "true")" >> $GITHUB_ENV
60-
6156
- uses: subosito/flutter-action@v1
6257
with:
6358
flutter-version: '${{ env.FLUTTER_VERSION }}'
@@ -67,7 +62,7 @@ jobs:
6762
run: flutter pub get
6863

6964
- name: set up ruby
70-
uses: actions/setup-ruby@v1
65+
uses: ruby/setup-ruby@v1
7166
with:
7267
ruby-version: ${{ env.RUBY_VERSION }}
7368

.github/workflows/deploy-firebase-ios.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ jobs:
5858
with:
5959
fetch-depth: 10
6060

61-
- name: check for changes in folders
62-
run: |
63-
echo "changes_starport_template=$(git diff --quiet HEAD HEAD~1 -- starport_template && echo "false" || echo "true")" >> $GITHUB_ENV
64-
6561
- uses: subosito/flutter-action@v1
6662
with:
6763
flutter-version: ${{ env.FLUTTER_VERSION }}
@@ -71,7 +67,7 @@ jobs:
7167
run: flutter pub get
7268

7369
- name: set up ruby
74-
uses: actions/setup-ruby@v1
70+
uses: ruby/setup-ruby@v1
7571
with:
7672
ruby-version: ${{ env.RUBY_VERSION }}
7773

starport_template/ios/fastlane/Fastfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ platform :ios do
4141
team_id: ENV["MATCH_TEAM_ID"],
4242
path: "Runner.xcodeproj"
4343
)
44-
45-
increment_build_number(
46-
build_number: ENV["GITHUB_RUN_NUMBER"]
47-
)
44+
if ENV["GITHUB_RUN_NUMBER"]
45+
increment_build_number(
46+
build_number: ENV["GITHUB_RUN_NUMBER"]
47+
)
48+
end
4849

4950
build_app(
5051
workspace: "Runner.xcworkspace",

0 commit comments

Comments
 (0)