Which workflow run download-artifact downloads from?

When we use actions/download-artifact, what is the actual workflow run from which the artifacts are downloaded?

  • The last previously run that is trigged in the same branch as the current workflow (who is trying to download)?
  • Whatever last completed previous run, no matter what branch?

From this page, I can’t find any information. I feel quite confused about it.