Skip to content

Commit

Permalink
add sort -V to the tag retrival
Browse files Browse the repository at this point in the history
  • Loading branch information
razr committed Jun 17, 2022
1 parent 4b7e974 commit 75dbee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rpi4-kernel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: checkout necessary tag
run: |
cd $HOME/linux_build/${KERNEL_DIR} \
&& git tag -l *`cat $HOME/uname_r | cut -d '-' -f 2`* | tail -1 > $HOME/linux_build/tag \
&& git tag -l *`cat $HOME/uname_r | cut -d '-' -f 2`* | sort -V | tail -1 > $HOME/linux_build/tag \
&& git checkout `cat $HOME/linux_build/tag`
- name: Retrieve buildinfo
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ RUN mkdir /home/user/linux_build \

# checkout necessary tag
RUN cd /home/user/linux_build/${KERNEL_DIR} \
&& git tag -l *`cat /home/user/uname_r | cut -d '-' -f 2`* | tail -1 > /home/user/linux_build/tag \
&& git tag -l *`cat /home/user/uname_r | cut -d '-' -f 2`* | sort -V | tail -1 > /home/user/linux_build/tag \
&& git checkout `cat /home/user/linux_build/tag`

# install buildinfo to retieve `raspi` kernel config
Expand Down

0 comments on commit 75dbee3

Please sign in to comment.