Skip to content

Commit

Permalink
ci: fetch all history when checking out repository
Browse files Browse the repository at this point in the history
By default, the `actions/checkout` action fetches only the latest commit
(`--depth=1`). We needed to fetch complete history of commits and tags
to correctly determine version of the library.
  • Loading branch information
wzieba committed Sep 15, 2023
1 parent a50042c commit 6df6a4e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK 11
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK 11
uses: actions/setup-java@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions publication.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ publishing {
}

signing {
useInMemoryPgpKeys(
findProperty("signing.keyId") ?: "",
findProperty("signing.key") ?: "",
findProperty("signing.password") ?: "",
)
sign publishing.publications
// useInMemoryPgpKeys(
// findProperty("signing.keyId") ?: "",
// findProperty("signing.key") ?: "",
// findProperty("signing.password") ?: "",
// )
// sign publishing.publications
}

0 comments on commit 6df6a4e

Please sign in to comment.