[ci] update the condition for getting base commit id #1560
ubuntu_gcc.yml
on: pull_request
Matrix: ubuntu_gcc
Matrix: ubuntu_gcc9
Matrix: ubuntu_gcc_for_liburing
Matrix: ubuntu_gcc_pb