Skip to content

Commit 939145b

Browse files
committed
github: workflows: Do more reliable upstream rev detection
Instead of complicated grep + sed combinations, simply use the west list command to get the current revision of the zephyr tree. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
1 parent 6bac851 commit 939145b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/upstream-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
working-directory: zephyr-silabs
2929
shell: bash
3030
run: |
31-
Z_REV=`grep -A 2 'name: zephyr$' west.yml|grep revision:|sed 's/^.*revision: //'`
31+
Z_REV=`west list zephyr -f {revision}`
3232
sed s/$Z_REV/main/ west.yml > west.yml.new
3333
mv west.yml.new west.yml
3434
west update

0 commit comments

Comments
 (0)