Skip to content

Commit e69fa84

Browse files
Use commit constant in conditional
Co-authored-by: Olivier Halligon <olivier.halligon@automattic.com>
1 parent 2665c7b commit e69fa84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_upload_pipeline_action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def self.run(params)
1111
commit = params[:commit]
1212

1313
UI.user_error!("Pipeline file not found: #{pipeline_file}") unless File.exist?(pipeline_file)
14-
UI.user_error!('You should not provide both `branch` and `commit`') if !branch.nil? && commit != 'HEAD'
14+
UI.user_error!('You should not provide both `branch` and `commit`') if !branch.nil? && commit != DEFAULT_COMMIT
1515
UI.user_error!('This action can only be called from a Buildkite CI build') unless ENV['BUILDKITE'] == 'true'
1616

1717
UI.message "Uploading pipeline on #{pipeline_file}, #{"branch #{branch}, " if branch}commit #{commit}"

0 commit comments

Comments
 (0)