Skip to content

Commit

Permalink
ci: Handle no diff case
Browse files Browse the repository at this point in the history
If there's no diff between KERNELS and uploaded assets, then correctly
do nothing.
  • Loading branch information
danobi committed Jan 2, 2025
1 parent 5d44b5a commit 47ba1d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/kernels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
- name: Build needed kernels
run: |
while IFS= read -r version; do
# If there's no diff, there will be a single empty version
[[ -n "$version" ]] || continue
echo "Building: ${version}"
./build.sh "$version"
done <<< "${{ steps.calculate.outputs.NEEDED_KERNELS }}"
Expand All @@ -64,6 +66,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# If there's no diff, make glob expand to empty
shopt -s nullglob
for kernel in linux-*; do
gh release upload assets "$kernel"
done

0 comments on commit 47ba1d3

Please sign in to comment.