Explicitly fetch git ref in build workflow. (#13508)
This should fix the versioning issues we0ve been having with the release artifacts.
Austin S. Hemmelgarn committed
Aug 10, 2022 at 14:20 UTC
dca0696942de8ee22aa4cb2d796bf9ad421d95ff
1 file changed
+10
.github/workflows/build.yml
+10
@@ -32,6 +32,10 @@ jobs:
32
with:
33
fetch-depth: 0
34
submodules: recursive
35
+ - name: Fix tags
36
+ id: fix-tags
37
+ run: |
38
+ git fetch -f origin ${{ github.ref }}:${{ github.ref }}
39
- name: Mark Stable
40
id: channel
41
if: github.event_name == 'workflow_dispatch' && github.event.inputs.type != 'nightly'
@@ -72,6 +76,7 @@ jobs:
76
SLACK_MESSAGE: |-
77
${{ github.repository }}: Failed to create source tarball for distribution.
78
Checkout: ${{ steps.checkout.outcome }}
79
+ Fix Tags: ${{ steps.fix-tags.outcome }}
80
Mark stable: ${{ steps.channel.outcome }}
81
Build: ${{ steps.build.outcome }}
82
Store: ${{ steps.store.outcome }}
@@ -101,6 +106,10 @@ jobs:
106
with:
107
fetch-depth: 0
108
submodules: recursive
109
+ - name: Fix tags
110
+ id: fix-tags
111
+ run: |
112
+ git fetch -f origin ${{ github.ref }}:${{ github.ref }}
113
- name: Mark Stable
114
id: channel
115
if: github.event_name == 'workflow_dispatch' && github.event.inputs.type != 'nightly'
@@ -144,6 +153,7 @@ jobs:
153
SLACK_MESSAGE: |-
154
${{ github.repository }}: Failed to create static installer archive for ${{ matrix.arch }}.
155
Checkout: ${{ steps.checkout.outcome }}
156
+ Fix Tags: ${{ steps.fix-tags.outcome }}
157
Mark stable: ${{ steps.channel.outcome }}
158
Build: ${{ steps.build.outcome }}
159
Store: ${{ steps.store.outcome }}