I have an artifact generated only in a pull request, and I am looking to then use that source branch name in my main branch on a PR merge.
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: apply.yml
name: artifact
branch: '${{ github.event.pull_request.head.repo.default_branch }}'
The syntax for ${{ github.event.pull_request.head.repo.default_branch is null, however.
Is there any way to pull the PR branch name?