diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5a314cbf0..b927b6763 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,4 +18,4 @@ jobs: distribution: 'zulu' java-version: '17' - - run: ./gradlew lint + - run: git describe --tags diff --git a/build.gradle b/build.gradle index ad432a3c5..be560b8a2 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ def getVersionName = { -> } return stdout.toString().trim() } catch (ignored) { - throw new GradleException('VersionName could not be read:' + ignored.message) + throw ignored } } @@ -39,7 +39,7 @@ def getVersionCode = { -> } return Integer.valueOf(stdout.toString().trim()) } catch (ignored) { - throw new GradleException('VersionCode could not be read:' + ignored.message) + throw ignored } }