Ci/cd yml, needs keyword: run job if one or more previous jobs pass

Is it possible to use the needs keyword, or any other configuration, to get a job to run if one or more specified jobs previously passed (in the same pipeline)? How about getting a job to run if one or more jobs pass in a stage before it?

  • Looked through the docs and forums, can’t find anything relevant
  • Using gitlab.com

Thanks!