Skip to content

Commit

Permalink
build: reduce checkout depth
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Mar 9, 2024
1 parent 69cd6b9 commit 4da3ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/obsidian-plugin-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# by default, no tags and only a single commit is fetched. To use git
# history in the next step, we need to fetch all history.
with:
fetch-depth: 50 # assuming max. 50 commits between releases
fetch-depth: 10 # assuming max. 10 commits between releases
fetch-tags: true

- name: Setup Node
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Create Changelog
run: |
count_tags="$(git tag | wc -l)"
if [[ $count_tags -ge 2 ]]; then
if [[ $count_tags -ge 2 ]]; then
previous_tag=$(git tag --sort=-creatordate | head -2 | tail -1)
ref="$previous_tag"
else
Expand Down

0 comments on commit 4da3ed2

Please sign in to comment.