Skip to content

Commit 3716ae4

Browse files
SessionHero01SessionHero01
authored andcommitted
Corrected steps for checkout
1 parent b96aae4 commit 3716ae4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
submodules: 'recursive'
24-
# For a push event, we need all history for git describe
25-
fetch-depth: ${{ github.event_name == 'pull_request' && 1 || 0 }}
2624
- name: Set up JDK 17
2725
uses: actions/setup-java@v4
2826
with:
@@ -33,6 +31,10 @@ jobs:
3331
run: ./gradlew check
3432
if: github.event_name == 'pull_request'
3533

34+
- name: Unshallow git for push event so we can do git describe
35+
run: git fetch --prune --unshallow
36+
if: github.event_name == 'push'
37+
3638
- name: Gather version name from git describe
3739
id: version
3840
if: github.event_name == 'push'

0 commit comments

Comments
 (0)