Update build-kernel.yml

This commit is contained in:
Igor Pečovnik
2021-12-23 08:53:00 +01:00
committed by GitHub
parent 8661a86791
commit 6705fb2a13

View File

@@ -267,10 +267,18 @@ jobs:
if [[ $? -eq 0 ]]; then
sudo mkdir -p ../build-kernel
cp cache/hash-beta/*.git* ../build-kernel/ 2> /dev/null || true
echo "FILE_HASH=$(ls -1 cache/hash-beta/*.githash | head -1)" >> $GITHUB_ENV
fi
echo "FILE_NAME=${BRANCH}-${FAMILY}" >> $GITHUB_ENV
echo "UPLOAD=true" >> $GITHUB_ENV
- name: Upload hash
if: ${{ env.UPLOAD == 'true' }}
uses: actions/upload-artifact@v2
with:
name: hash
path: build/${{ env.FILE_HASH }}
- name: Upload build artifacts