Skip to content

Commit 653bcbd

Browse files
committed
chore(workflow): wrap all expressions in if: with ${{}}
1 parent f5ae068 commit 653bcbd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ jobs:
2525
uses: gradle/actions/setup-gradle@v4
2626

2727
- name: Decode Keystore
28-
if: secrets.SIGNING_KEYSTORE != ''
28+
if: ${{ secrets.SIGNING_KEYSTORE != '' }}
2929
run: echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > app/release.keystore
3030

3131
- name: Setup Gradle Signing Config
32-
if: secrets.SIGNING_KEYSTORE != ''
32+
if: ${{ secrets.SIGNING_KEYSTORE != '' }}
3333
run: |
3434
echo -e "\nSTORE_FILE=release.keystore" >> gradle.properties
3535
echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> gradle.properties
3636
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> gradle.properties
3737
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> gradle.properties
3838
3939
- name: Build Release APK
40-
if: secrets.SIGNING_KEYSTORE != ''
40+
if: ${{ secrets.SIGNING_KEYSTORE != '' }}
4141
run: ./gradlew assembleRelease --stacktrace
4242

4343
- name: Build Debug APK
44-
if: secrets.SIGNING_KEYSTORE == ''
44+
if: ${{ secrets.SIGNING_KEYSTORE == '' }}
4545
run: ./gradlew assembleDebug --stacktrace
4646

4747
- name: Build App Bundle
48-
if: secrets.SIGNING_KEYSTORE != ''
48+
if: ${{ secrets.SIGNING_KEYSTORE != '' }}
4949
run: ./gradlew bundleRelease --stacktrace
5050

5151
- name: Upload APK
@@ -57,7 +57,7 @@ jobs:
5757
compression-level: 0
5858

5959
- name: Upload Release App Bundle
60-
if: secrets.SIGNING_KEYSTORE != ''
60+
if: ${{ secrets.SIGNING_KEYSTORE != '' }}
6161
uses: actions/upload-artifact@v4
6262
with:
6363
name: app-release.aab
@@ -66,7 +66,7 @@ jobs:
6666
compression-level: 0
6767

6868
- name: Push APK to released repo
69-
if: secrets.RELEASED_REPO_TOKEN != ''
69+
if: ${{ secrets.RELEASED_REPO_TOKEN != '' }}
7070
run: |
7171
git config --global user.name "github-actions[bot]"
7272
git config --global user.email "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)