Cancel in progress builds do not work for forced PR push

I am trying to adopt the concurrency for my workflow to cancel the PR build when there is new commit, and it works great. Here is the code

  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{github.event_name == 'pull_request'}}

But when I was rebasing the PR branch to the latest master, I did notice the PR build cancellation does not work anymore. Is there any workaround for it? Thanks!