Skip to content

Commit

Permalink
fix: change condition to existence of a file
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Feb 14, 2025
1 parent b2002bd commit ca24694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ git switch main
git pull --rebase

git describe > VERSION
git commit -am 'chore: set version of release'
git commit --message 'chore: set version of release' VERSION
git push origin HEAD

git tag v$RELEASE_VERSION -m "v$RELEASE_VERSION"
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Hdm::VERSION = if ENV['container']
Hdm::VERSION = if File.exist? '/VERSION'
File.read('/VERSION')
else
'unknown'

Check failure on line 4 in config/initializers/version.rb

View workflow job for this annotation

GitHub Actions / RuboCop

Layout/IndentationWidth: Use 2 (not 1) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
Expand Down

0 comments on commit ca24694

Please sign in to comment.