Skip to content

Commit ba842a1

Browse files
author
Marko Vejnovic
committed
refactor: capture only known build-kernel outputs into GITHUB_OUTPUT
1 parent 18fb71d commit ba842a1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/build-vmlinux.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ jobs:
7575
run: |
7676
set -euo pipefail
7777
bash scripts/build-kernel.sh | tee "$RUNNER_TEMP/build-out.env"
78-
while IFS='=' read -r k v; do
79-
[[ -n "$k" ]] && echo "$k=$v" >> "$GITHUB_OUTPUT"
80-
done < "$RUNNER_TEMP/build-out.env"
78+
grep -E '^(kernel_version|release_tag)=' "$RUNNER_TEMP/build-out.env" >> "$GITHUB_OUTPUT"
8179
8280
- name: Create or update release
8381
env:

0 commit comments

Comments
 (0)