Skip to content

Commit bb46de3

Browse files
committed
Workflow: Fetch all tags
1 parent 6a4c457 commit bb46de3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build-test-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
1416
- name: Build project
1517
uses: actions/setup-node@v2-beta
1618
with:
@@ -25,10 +27,6 @@ jobs:
2527
- name: Get Current Tag
2628
id: get_current_tag
2729
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
28-
- run: |
29-
git tag
30-
- run: |
31-
echo $(git tag | tail -n 2 | head -n 1)
3230
- name: Get Previous tag
3331
id: previous_tag
3432
run: echo ::set-output name=tag::$(git tag | tail -n 2 | head -n 1)

0 commit comments

Comments
 (0)