Skip to content

Commit

Permalink
ci: doc-build: only rebase on pull requests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fabiobaltieri committed Nov 9, 2023
1 parent 1572ea1 commit 62b0153
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 62b0153

Please sign in to comment.