diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 005573342f..fb9f2faedc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history and tags - name: mkdir /opt/ttmlir-toolchain shell: bash diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 76f33c889f..5f5ca17a06 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -3,6 +3,8 @@ name: docs on: push: branches: ["main"] + pull_request: + branches: [ "main" ] workflow_dispatch: @@ -23,6 +25,8 @@ jobs: MDBOOK_VERSION: 0.4.36 steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history and tags - name: mkdir /opt/ttmlir-toolchain shell: bash run: |