Skip to content

Commit 7fb92eb

Browse files
SessionHero01SessionHero01
authored andcommitted
Corrected steps for checkout
1 parent 7b94371 commit 7fb92eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
submodules: 'recursive'
24-
fetch-tags: true
24+
# For a push event, we need all history for git describe
25+
depth: ${{ github.event_name == 'pull_request' && 1 || 0 }}
2526
- name: Set up JDK 17
2627
uses: actions/setup-java@v4
2728
with:

0 commit comments

Comments
 (0)