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 d62d1b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 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

0 comments on commit d62d1b4

Please sign in to comment.