Skip to content

Commit 47ba1d3

Browse files
committed
ci: Handle no diff case
If there's no diff between KERNELS and uploaded assets, then correctly do nothing.
1 parent 5d44b5a commit 47ba1d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/kernels.yml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
- name: Build needed kernels
5757
run: |
5858
while IFS= read -r version; do
59+
# If there's no diff, there will be a single empty version
60+
[[ -n "$version" ]] || continue
5961
echo "Building: ${version}"
6062
./build.sh "$version"
6163
done <<< "${{ steps.calculate.outputs.NEEDED_KERNELS }}"
@@ -64,6 +66,9 @@ jobs:
6466
env:
6567
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6668
run: |
69+
# If there's no diff, make glob expand to empty
70+
shopt -s nullglob
71+
6772
for kernel in linux-*; do
6873
gh release upload assets "$kernel"
6974
done

0 commit comments

Comments
 (0)