Skip to content

Commit fefd86f

Browse files
committed
get release title and tag
1 parent 741de5e commit fefd86f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,19 @@ jobs:
198198
run: ls -laR .
199199
- name: Workaround - delete all files over 2G, above github release file upload limit
200200
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
201206
- name: Draft release
202207
env:
203208
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
204209
uses: svenstaro/upload-release-action@v2
205210
with:
206211
repo_token: ${{ secrets.GITHUB_TOKEN }}
212+
release_name: master-${{ steps.sha.outputs.short_sha }}
213+
tag: master-${{ steps.sha.outputs.short_sha }}
207214
draft: true
208215
file_glob: true
209216
file: clang-*/**/*

0 commit comments

Comments
 (0)