Skip to content

Commit

Permalink
Merge pull request #39 from razr/git-tag-fix
Browse files Browse the repository at this point in the history
add sort -V to the tag retrival
  • Loading branch information
LanderU authored Jun 19, 2022
2 parents 4b7e974 + 75dbee3 commit c242c87
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 c242c87

Please sign in to comment.