I think there are a few ways to achieve this.
-
Add a new step to your job that only runs
on: success
, checks the branch that is on using a simple bash check for the current git branch, and then fires off a notification to some other service to download your artifacts. This could be an AWS Lambda job or something else along those lines. -
Using the API, poll for job statuses and download artifacts once a job on the master branch is finished.