Skip to content

Commit

Permalink
Skip docs-preview pipeline on < 7.2 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak authored and rafaelfranca committed Jun 26, 2024
1 parent d88e759 commit 9594fbb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pipelines/docs-preview/pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@

env CLOUDFLARE_PAGES_PROJECT: "rails-docs-preview"

if build_context.rails_version < Gem::Version.new("7.2.x")
command do
label ":bk-status-passed: Build skipped"
skip true
command "true"
end

next
end

command do
label "build", emoji: :rails
key "build"
Expand Down

0 comments on commit 9594fbb

Please sign in to comment.