Skip to content

Commit f2bbeb2

Browse files
committed
fix(ci): fetch full git history for accurate versionCode
Shallow checkout (fetch-depth: 1) caused versionCode to always be 1 since it is derived from git rev-list --count HEAD. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 3c945aa commit f2bbeb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-fcash2-upload-android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
steps:
4040
- uses: actions/checkout@v4
4141
with:
42-
fetch-depth: 1
42+
fetch-depth: 0
4343
persist-credentials: false
4444

4545
- name: Setup Java env
@@ -92,7 +92,7 @@ jobs:
9292
steps:
9393
- uses: actions/checkout@v4
9494
with:
95-
fetch-depth: 1
95+
fetch-depth: 0
9696
persist-credentials: false
9797

9898
- name: Setup Java env

0 commit comments

Comments
 (0)