Skip to content

Commit

Permalink
Use fetch-depth 0
Browse files Browse the repository at this point in the history
Now fetches all history including tags.
  • Loading branch information
gitfool committed May 28, 2020
1 parent ebe621a commit 9713d4f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
with:
fetch-depth: 0

- name: Cache packages
uses: actions/cache@v1
Expand All @@ -44,9 +43,8 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
with:
fetch-depth: 0

- name: Install dotnet
uses: actions/setup-dotnet@v1
Expand All @@ -68,9 +66,8 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
with:
fetch-depth: 0

- name: Install dotnet
uses: actions/setup-dotnet@v1
Expand All @@ -92,9 +89,8 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
with:
fetch-depth: 0

- name: Install dotnet
uses: actions/setup-dotnet@v1
Expand Down

2 comments on commit 9713d4f

@lambinh99
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@lambinh99
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quá tuyệt voi

Please sign in to comment.