Skip to content

Commit

Permalink
fix(gradle-library): fetch all tags for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler authored Apr 25, 2024
1 parent d3b2942 commit 9f9eb56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gradle-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
# do not persist credentials because this clashes with semantic-release action
# (because the @semantic-release/git attempts to use them but needs permissions to bypass protection)
persist-credentials: false
# fetch-depth 0 is required to fetch all tags (and to determine the version based on tags)
fetch-depth: ${{ inputs.publish-tasks != '' && 0 || 1 }}

#
# Build, test and create Docker image
Expand Down

0 comments on commit 9f9eb56

Please sign in to comment.