Skip to content

Commit 971b722

Browse files
committed
Update name of the artifact to be similar to package name
1 parent 6a696e3 commit 971b722

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/llvm.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ jobs:
4545
- name: Build
4646
run: bundle exec omnibus build llvm --log-level debug --override use_git_caching:false
4747

48-
- uses: actions/upload-artifact@v3
48+
- name: Extract package name to build a build artifact name
49+
run: |
50+
filename=$(ls -1 pkg/llvm-*.tar.gz)
51+
echo "BUILD_NAME=${filename%.*}" >> "$GITHUB_ENV"
52+
53+
- uses: actions/upload-artifact@v4
4954
with:
50-
name: llvm-archive
55+
name: ${{ env.BUILD_NAME }}
5156
path: omnibus/pkg/*.tar.gz
5257
retention-days: 1
58+
if-no-files-found: error

0 commit comments

Comments
 (0)