Skip to content

Commit

Permalink
Change: ci: add head -n 1 to be more explicit
Browse files Browse the repository at this point in the history
While the extra lines won't be used it is more explicit to reduce it to
a single line.

Co-authored-by: Christoph Krämer <[email protected]>
  • Loading branch information
nichtsfrei and Kraemii committed Feb 14, 2024
1 parent 21b4f53 commit 02400c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file removed .github/workflows/ddependabot.yml
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
if: ( env.IS_VERSION_TAG == 'true' )
run: |
# find the latest version that is not ourself
export LATEST_VERSION=$(git tag -l | grep -v '${{ github.ref_name }}' | sort -r --version-sort)
export LATEST_VERSION=$(git tag -l | grep -v '${{ github.ref_name }}' | sort -r --version-sort | head -n 1)
# get major minor patch versions
IFS='.' read -r latest_major latest_minor latest_patch << EOF
$LATEST_VERSION
Expand Down

0 comments on commit 02400c5

Please sign in to comment.