Skip to content

Commit 2429bb8

Browse files
committed
fix order of operations
1 parent b00d4a6 commit 2429bb8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/binaries.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,6 @@ jobs:
160160
steps:
161161
- uses: actions/checkout@master
162162

163-
- name: Set version suffix
164-
run: |
165-
if [[ "${{ github.ref_type }}" == "tag" ]]; then
166-
echo "VERSION_SUFFIX=${{ github.ref_name }}" >> $GITHUB_ENV
167-
else
168-
echo "VERSION_SUFFIX=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
169-
fi
170-
171163
- name: Download headers
172164
uses: actions/download-artifact@v4
173165
with:
@@ -178,6 +170,14 @@ jobs:
178170
with:
179171
install: gcc make curl zip
180172

173+
- name: Set version suffix
174+
run: |
175+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
176+
echo "VERSION_SUFFIX=${{ github.ref_name }}" >> $GITHUB_ENV
177+
else
178+
echo "VERSION_SUFFIX=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
179+
fi
180+
181181
- name: Show GCC
182182
run: gcc -v
183183

0 commit comments

Comments
 (0)