From b2271d79787ea44ffe3641a5d6b529e560349693 Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Fri, 20 Sep 2024 22:31:43 +0200 Subject: [PATCH] ci: Run release workflows with fetch-depth 0 (#3311) This should fetch all history and tags etc, which is needed to properly version and publish. --- .github/workflows/release-prepare.yml | 2 ++ .github/workflows/release-publish.yml | 2 ++ .github/workflows/release-tag.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index 65fddff823..6cc8cdc740 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: subosito/flutter-action@v2 - uses: bluefireteam/melos-action@v3 with: diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 347083483a..1195a62a05 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -15,6 +15,8 @@ jobs: runs-on: [ ubuntu-latest ] steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: subosito/flutter-action@v2 - uses: bluefireteam/melos-action@v3 with: diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 8ea1d74636..2041193fcb 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -12,6 +12,8 @@ jobs: if: contains(github.event.head_commit.message, 'chore(release)') steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: subosito/flutter-action@v2 - uses: bluefireteam/melos-action@v3 with: