Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: repository value renovate update workflow
[ upstream commit 523c7be ] github.head_ref is only available when the workflow context is pull_request or pull_request_target cf https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs since head_ref was nil, the conditional `${{ startsWith(github.head_ref, 'renovate/') && github.repository || github.event.pull_request.head.repo.full_name }}` would then point to `pull_request.head.repo.full_name` which was also nil because of the context being workflow_dispatch and not pull_request_target or pull_request this commit revert the repository conditional creation to `github.event.pull_request.head.repo.full_name || github.repository`, as `github.repository` will only be used out of a pull request event (here, workflow_dispatch), and the only workflow_dispatch context usage would be coming from renovate branches that are protected by renovate environment fixes: cilium#34650 Signed-off-by: Antony Reynaud <[email protected]> Signed-off-by: Yutaro Hayakawa <[email protected]>
- Loading branch information