Skip to content

Commit be6fd58

Browse files
committed
cd: fix problem with annotated tags
Before this patch, annotated tags were not fetched from origin and the `packpack` functionality related to tags did not work correctly (the version of the package was not set according to the tag).
1 parent 8f5cc97 commit be6fd58

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/packaging.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,25 @@ jobs:
4242
steps:
4343
- name: Clone the module
4444
uses: actions/checkout@v2
45+
with:
46+
fetch-depth: 0
4547

4648
- name: Clone the packpack tool
4749
uses: actions/checkout@v2
4850
with:
4951
repository: packpack/packpack
5052
path: packpack
5153

54+
- name: Fetch tags
55+
# Found that Github checkout Actions pulls all the tags, but
56+
# right it deannotates the testing tag, check:
57+
# https://github.com/actions/checkout/issues/290
58+
# But we use 'git describe ..' calls w/o '--tags' flag and it
59+
# prevents us from getting the needed tag for packages version
60+
# setup. To avoid of it, let's fetch it manually, to be sure
61+
# that all tags will exists always.
62+
run: git fetch --tags -f
63+
5264
- name: Create packages
5365
run: ./packpack/packpack
5466

0 commit comments

Comments
 (0)