Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 496 Bytes

checkout-full-history-of-repo.md

File metadata and controls

15 lines (13 loc) · 496 Bytes

Checkout the full history of a repository

By default actions/checkout only fetches the last commit to a repository. Sometimes, you might want to fetch the full history of a repository instead. Do so by setting fetch-depth to 0 (default: 1).

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repo
        uses: actions/checkout@v2
         with:
          # fetch full history of repo
          fetch-depth: 0