Skip to content

Commit

Permalink
Add git hash as rev version
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Dec 6, 2024
1 parent 7ee0432 commit 08a2136
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sentry.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ require "./sentry/sound_file_storage"
require "./sentry/process_runner.cr"

module Sentry
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
VERSION = {{
`shards version "#{__DIR__}"`.chomp.stringify +
" (rev " +
`git rev-parse --short HEAD`.chomp.stringify +
")"
}}
end

0 comments on commit 08a2136

Please sign in to comment.