|
36 | 36 | with:
|
37 | 37 | fetch-depth: 0 # all history
|
38 | 38 | submodules: true
|
| 39 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 40 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
39 | 41 | - name: Build source packages
|
40 | 42 | run: make -j$(nproc) package-source
|
41 | 43 | working-directory: crawl-ref/source
|
@@ -115,6 +117,9 @@ jobs:
|
115 | 117 | with:
|
116 | 118 | fetch-depth: 0 # all history
|
117 | 119 | submodules: true
|
| 120 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 121 | + if: github.event.release.tag_name != null |
| 122 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
118 | 123 | - name: Set up Python 3.7
|
119 | 124 | uses: actions/setup-python@v4
|
120 | 125 | with:
|
@@ -186,6 +191,8 @@ jobs:
|
186 | 191 | with:
|
187 | 192 | fetch-depth: 0 # all history
|
188 | 193 | submodules: false
|
| 194 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 195 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
189 | 196 | - name: Install dependencies
|
190 | 197 | run: ./deps.py --build-opts "${{ matrix.build_opts }}" --appimage
|
191 | 198 | working-directory: .github/workflows
|
@@ -222,6 +229,8 @@ jobs:
|
222 | 229 | with:
|
223 | 230 | fetch-depth: 0 # all history
|
224 | 231 | submodules: false
|
| 232 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 233 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
225 | 234 | - name: Install dependencies
|
226 | 235 | run: ./deps.py --build-opts TILES=1 --debian-packages
|
227 | 236 | working-directory: .github/workflows
|
@@ -292,6 +301,9 @@ jobs:
|
292 | 301 | - uses: actions/checkout@v3
|
293 | 302 | with:
|
294 | 303 | fetch-depth: 0 # all history
|
| 304 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 305 | + if: github.event.release.tag_name != null |
| 306 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
295 | 307 | - name: Checkout submodules
|
296 | 308 | shell: bash
|
297 | 309 | run: |
|
@@ -338,6 +350,9 @@ jobs:
|
338 | 350 | - uses: actions/checkout@v3
|
339 | 351 | with:
|
340 | 352 | fetch-depth: 0 # all history
|
| 353 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 354 | + if: github.event.release.tag_name != null |
| 355 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
341 | 356 | - name: Checkout submodules (for crosscompile)
|
342 | 357 | shell: bash
|
343 | 358 | run: |
|
@@ -537,6 +552,9 @@ jobs:
|
537 | 552 | with:
|
538 | 553 | fetch-depth: 0 # all history
|
539 | 554 | submodules: true
|
| 555 | + - name: Fix tags for release # work around https://github.com/actions/checkout/issues/882 |
| 556 | + if: github.event.release.tag_name != null |
| 557 | + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # will break on a lightweight tag |
540 | 558 | - name: Install dependencies
|
541 | 559 | run: ./deps.py --build-opts "${{ matrix.build_opts }}"
|
542 | 560 | working-directory: .github/workflows
|
|
0 commit comments