Skip to content

Commit

Permalink
Check for last submission failed for pre prod release for failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Nov 14, 2024
1 parent 088e5d5 commit d7d28bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/pre_prod_release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PreProdRelease < ApplicationRecord
enum :status, STATES

def failure?
failed? || triggered_workflow_run.failure?
failed? || triggered_workflow_run.failure? || store_submissions.last&.failed?
end

def mark_as_stale!
Expand Down

0 comments on commit d7d28bc

Please sign in to comment.