Skip to content

Commit 74dbcd1

Browse files
committed
CI: fetch tags correctly
1 parent 355beb3 commit 74dbcd1

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
submodules: recursive
21-
22-
- name: Get tags
23-
run: |
24-
git fetch --tags
25-
echo $?
26-
git tag --list
21+
tags: true
22+
fetch-depth: 0
2723

2824
- name: Install pip
2925
run: sudo apt-get install -y python3-pip
@@ -94,12 +90,8 @@ jobs:
9490
- uses: actions/checkout@v4
9591
with:
9692
submodules: recursive
97-
98-
- name: Get tags
99-
run: |
100-
git fetch --tags
101-
echo $?
102-
git tag --list
93+
tags: true
94+
fetch-depth: 0
10395

10496
- name: Install pip
10597
run: sudo apt-get install -y python3-pip
@@ -145,12 +137,8 @@ jobs:
145137
- uses: actions/checkout@v4
146138
with:
147139
submodules: recursive
148-
149-
- name: Get tags
150-
run: |
151-
git fetch --tags
152-
echo $?
153-
git tag --list
140+
tags: true
141+
fetch-depth: 0
154142

155143
- name: Set up Python
156144
uses: actions/setup-python@v5
@@ -200,12 +188,8 @@ jobs:
200188
- uses: actions/checkout@v4
201189
with:
202190
submodules: recursive
203-
204-
- name: Get tags
205-
run: |
206-
git fetch --tags
207-
echo $?
208-
git tag --list
191+
tags: true
192+
fetch-depth: 0
209193

210194
- name: Set up Python
211195
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)