From e9b4bcad7b1946fb98a1322f545f52cf66c9635b Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Tue, 30 Apr 2024 13:54:00 +0200 Subject: [PATCH] Fetch full git history in GH actions for version This resolves the wrong Loki version annotation due to missing git history. See https://github.com/pypa/setuptools_scm/issues/480. --- .github/workflows/code_checks.yml | 2 ++ .github/workflows/documentation.yml | 2 ++ .github/workflows/regression_tests.yml | 2 ++ .github/workflows/tests.yml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 1db620a4e..e137436af 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -25,6 +25,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index cec8675a7..c94259c81 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -25,6 +25,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 diff --git a/.github/workflows/regression_tests.yml b/.github/workflows/regression_tests.yml index 15399657e..24e532a38 100644 --- a/.github/workflows/regression_tests.yml +++ b/.github/workflows/regression_tests.yml @@ -25,6 +25,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Clone CLOUDSC uses: actions/checkout@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 004be6d43..298751b76 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5