We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96aae4 commit 3716ae4Copy full SHA for 3716ae4
.github/workflows/gradle-publish.yml
@@ -21,8 +21,6 @@ jobs:
21
- uses: actions/checkout@v4
22
with:
23
submodules: 'recursive'
24
- # For a push event, we need all history for git describe
25
- fetch-depth: ${{ github.event_name == 'pull_request' && 1 || 0 }}
26
- name: Set up JDK 17
27
uses: actions/setup-java@v4
28
@@ -33,6 +31,10 @@ jobs:
33
31
run: ./gradlew check
34
32
if: github.event_name == 'pull_request'
35
+ - name: Unshallow git for push event so we can do git describe
+ run: git fetch --prune --unshallow
36
+ if: github.event_name == 'push'
37
+
38
- name: Gather version name from git describe
39
id: version
40
if: github.event_name == 'push'
0 commit comments