From 7c1e505f6a557c03be9ba39df87a0c94621bed8f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 28 Apr 2023 11:42:19 +0200 Subject: [PATCH] Include the entire `git` history in the work-flows (issue 16366) Without this change we're not able to correctly determine the version number, please refer to https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches --- .github/workflows/ci.yml | 2 ++ .github/workflows/codeql.yml | 2 ++ .github/workflows/publish_website.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f19d2ca8e..c2518f6c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Use Node.js 18 LTS uses: actions/setup-node@v3 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6cdea5a30..fc0b94134 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -19,6 +19,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/publish_website.yml b/.github/workflows/publish_website.yml index 38306c2e6..8b1152b4a 100644 --- a/.github/workflows/publish_website.yml +++ b/.github/workflows/publish_website.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Use Node.js 18 LTS uses: actions/setup-node@v3