Fix minor issues with GHA workflow (#5081)
First of all, fix dispatch trigger, as `github.event.ref` should contain full branch name prefixed by `refs/heads`
Add `timeout-minutes` parameter to `_test.yml` workflow and pass it from `build_and_test.yml`
Set build workflow timeout to 1 hour