From d4b1823ced6ce4617c434ac97ac8d67af7876ce3 Mon Sep 17 00:00:00 2001 From: Bastian Krol Date: Mon, 5 Sep 2022 09:08:38 +0200 Subject: [PATCH] ci(release): set checkout fetch-depth to 0 to also fetch tags [skip ci] --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ee2fd2acc8..2b51deef16 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,8 +43,9 @@ jobs: steps: - uses: actions/checkout@v3 with: - # 0 = all, default is 1 - fetch-depth: 1337 + # With fetch-depth 0 the checkout action will also fetch all tags and branches. We need the tags for + # ./disallow-major-release.sh to work. + fetch-depth: 0 token: ${{ secrets.GH_PAT }} - uses: actions/setup-node@v3 with: