Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Github actions fix commit status on new PR
On windows tester actions we are adding the status to the latest commit on a PR; to get the commit value we inspect the gh context but the condition to get the value on a new PR (.event.after is null) is not catch by the expression and so the .sha value is not picked; as so the status is not correctly added to the commit. This fix extends the condition to check for null values; and if that is the case pick the right commit value Signed-off-by: Adrian Riobo Lorenzo <ariobolo@redhat.com>
- Loading branch information