Skip to content

Commit

Permalink
fix: fix version number in release (#275)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou authored Jan 20, 2024
1 parent a16bcd5 commit b6ad1c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "master"
ref: master
fetch-depth: 0

- name: Get latest tag
Expand Down
7 changes: 7 additions & 0 deletions config/default
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

get_version() {
local ver
ver="$(realpath "$( dirname -- "${BASH_SOURCE[0]}")"/../src/version)"

if [ -f "${ver}" ]; then
cat "${ver}"
return
fi

ver="$(realpath "$( dirname -- "${BASH_SOURCE[0]}")"/version)"
cat "${ver}"
}
Expand Down

0 comments on commit b6ad1c5

Please sign in to comment.