Accessing artifact from one workflow in another

I have a build workflow that i run on with every PR.
this workflow builds executables or deployable artifacts (but does not deploy them)
i then have another workflow that i trigger when the PR is merged in to main. this workflow needs to be able to grab the last packaged artifact published and deploy that.

in Azure DevOps this is easy to do with the artifact repository.

how do i accomplish this in Github workflows?

Theoretically, you could use the Actions REST API (or some software that builds on it) to find the relevant workflow(s) and deploy.

In practice, that’s probably not a good idea to do this. Unless you have additional measures in place to prevent it, other workflows might have been merged since, and their code wouldn’t be included in those older artifacts. I’d recommend doing a fresh build from main and deploying that.