Skip to content

Commit 121274a

Browse files
committed
Fix(Build): bump github action
1 parent 439aff3 commit 121274a

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

.github/workflows/continuous-integration.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: set up JDK 11
17-
uses: actions/setup-java@v3
17+
uses: actions/setup-java@v4
1818
with:
1919
java-version: '11'
2020
distribution: 'temurin'
@@ -43,13 +43,13 @@ jobs:
4343
# Login to Google using Firebase Admin SDK Service Agent Key
4444
- id: 'auth'
4545
name: Login to Google Cloud
46-
uses: 'google-github-actions/auth@v1'
46+
uses: 'google-github-actions/auth@v2'
4747
with:
4848
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
4949

5050
# Set up Cloud SDK
5151
- name: 'Set up Cloud SDK'
52-
uses: 'google-github-actions/setup-gcloud@v1'
52+
uses: 'google-github-actions/setup-gcloud@v2'
5353

5454
# Set Firebase Project ID
5555
- name: Set current project
@@ -65,7 +65,7 @@ jobs:
6565
##########################################
6666
# Upload APK for Java version
6767
- name: Upload APK Debug for Java
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
7070
name: Java-Debug-APK
7171
path: ${{ env.module_app }}/build/outputs/apk/debug/${{ env.module_app }}-debug.apk

.github/workflows/deploy-alpha.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
################################
1818
# Update Version Code #
@@ -71,6 +71,13 @@ jobs:
7171
- name: Build with Gradle
7272
run: ./gradlew assemble
7373

74+
- name: Setup build tool version variable
75+
shell: bash
76+
run: |
77+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
78+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
79+
echo Last build tool version is: $BUILD_TOOL_VERSION
80+
7481
- name: Sign app APK
7582
uses: r0adkll/sign-android-release@v1
7683
# ID used to access action output
@@ -83,7 +90,7 @@ jobs:
8390
keyPassword: ${{ secrets.SIGN_APP_KEYPASS }}
8491
env:
8592
# override default build-tools version (29.0.3) -- optional
86-
BUILD_TOOLS_VERSION: "30.0.2"
93+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
8794

8895
- name: Push to google play
8996
uses: r0adkll/upload-google-play@v1

.github/workflows/deploy-prod.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
ref: develop
1818
fetch-depth: 0 #To Fetch All Tags and Branches
@@ -114,6 +114,13 @@ jobs:
114114
- name: Build with Gradle
115115
run: ./gradlew build
116116

117+
- name: Setup build tool version variable
118+
shell: bash
119+
run: |
120+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
121+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
122+
echo Last build tool version is: $BUILD_TOOL_VERSION
123+
117124
- name: Sign app APK
118125
uses: r0adkll/sign-android-release@v1
119126
# ID used to access action output
@@ -126,7 +133,7 @@ jobs:
126133
keyPassword: ${{ secrets.SIGN_APP_KEYPASS }}
127134
env:
128135
# override default build-tools version (29.0.3) -- optional
129-
BUILD_TOOLS_VERSION: "30.0.2"
136+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
130137

131138
- name: Push to google play
132139
uses: r0adkll/upload-google-play@v1

app/build.gradle

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ dependencies {
5656
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
5757
exclude group: 'com.androidx', module: 'support-annotations'
5858
})
59-
androidTestImplementation('tools.fastlane:screengrab:1.1.0', {
60-
exclude group: 'com.androidx', module: 'support-annotations'
61-
})
59+
androidTestImplementation 'tools.fastlane:screengrab:2.1.1'
6260

6361
testImplementation 'org.mockito:mockito-core:2.18.3'
6462
androidTestImplementation 'org.mockito:mockito-android:2.18.3'

0 commit comments

Comments
 (0)