Skip to content

Commit

Permalink
fetch whole history
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Mar 10, 2023
1 parent 818697c commit 3b97198
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
distribution: 'adopt'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
distribution: 'adopt'
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ plugins {
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.10'
}

def getVersionCode = { ->
def getVersionCodeOrNull = { ->
def versionCode = System.getenv('GIT_COMMIT_COUNT')?.toInteger()
if (versionCode != null) versionCode + 1941588398
else 1
else null
}

def getVersionOrNull = { ->
Expand All @@ -22,7 +22,7 @@ android {
applicationId "de.lolhens.resticui"
minSdkVersion 24
targetSdkVersion 33
versionCode getVersionCode()
versionCode getVersionCode() ?: 1
versionName getVersionOrNull() ?: "0.0.1-SNAPSHOT"
setProperty('archivesBaseName', [
"restic-android",
Expand Down

0 comments on commit 3b97198

Please sign in to comment.