ci: doc-build: only rebase on pull requests

Skip the rebase step if it's not a pull request. Schedule and push runs
have no base ref to rebase against anyway, currently the step is failing
and being skipped.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-11-09 17:16:28 +00:00 committed by Fabio Baltieri
parent 1572ea16fc
commit 62b0153249
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ jobs:
fetch-depth: 0
- name: Rebase
if: github.event_name == 'pull_request'
continue-on-error: true
env:
BASE_REF: ${{ github.base_ref }}