I have two workflows:
- Builds everything on every commit
name: Push workflow on: push: jobs: ...
- Release if 1. was run on branch ‘release’
name: Release workflow on: workflow_run: workflows: ["Push workflow"] branches: - "release" types: - completed # do a release
“Push workflow” compiles and packages the binary outputs and it uploads them as a workflow run artifact.
I’m trying to access these artifacts from the “Release workflow”, as I don’t want to compile everything again.
actions/download-artifact@v2 but didn’t work, which make sense as this are 2 different workflow runs.
Is there any field/url pointing to the triggering workflow run that I can use to download it’s artifacts?
Or do I have to change the strategy and have a single workflow with 2 dependent jobs ?