Skip to content

Commit 4bd335e

Browse files
committed
move get-sha to the top of job
1 parent fefd86f commit 4bd335e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,25 +192,25 @@ jobs:
192192
runs-on: ubuntu-22.04
193193
needs: build
194194
steps:
195+
- name: Checkout code
196+
uses: actions/checkout@v4
197+
- name: Get short SHA
198+
id: get-sha
199+
run: echo "short_sha=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
195200
- name: Download artifacts
196201
uses: actions/download-artifact@v4
197202
- name: List files
198203
run: ls -laR .
199204
- name: Workaround - delete all files over 2G, above github release file upload limit
200205
run: find . -type f -size +2G -exec rm -v {} \;
201-
- name: Checkout code
202-
uses: actions/checkout@v4
203-
- name: Get short SHA
204-
id: sha
205-
run: echo "short_sha=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
206206
- name: Draft release
207207
env:
208208
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209209
uses: svenstaro/upload-release-action@v2
210210
with:
211211
repo_token: ${{ secrets.GITHUB_TOKEN }}
212212
release_name: master-${{ steps.sha.outputs.short_sha }}
213-
tag: master-${{ steps.sha.outputs.short_sha }}
213+
tag: master-${{ steps.get-sha.outputs.short_sha }}
214214
draft: true
215215
file_glob: true
216216
file: clang-*/**/*

0 commit comments

Comments
 (0)