We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a6df3 commit 2d18704Copy full SHA for 2d18704
app/models/git_commit_sha.rb
@@ -5,7 +5,9 @@ class GitCommitSha
5
attr_writer :current_sha
6
7
def self.current_sha
8
- @current_sha ||= retrieve_sha_from_file.presence || retrieve_sha_from_git
+ @current_sha ||= ENV["GIT_COMMIT_SHA"].presence ||
9
+ retrieve_sha_from_file.presence ||
10
+ retrieve_sha_from_git
11
end
12
13
def self.reset_current_sha
0 commit comments