From b4eff8f037c92ee4513035746fc8ca54de6ae446 Mon Sep 17 00:00:00 2001 From: Jonatan Antoni Date: Wed, 29 Jun 2022 14:10:08 +0200 Subject: [PATCH] Fixup GH workflow for releases (#19) Running the workflow from a tag (triggered by release) leads to overwriting the tag metadata in the runners working copy. Hence, the release will not pick up data and changelog, correctly. By force-fetching all tags all the tag metadata is restored. Relates to actions/checkout#290 --- .github/workflows/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4088654f..319bffe7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,6 +17,11 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + + - name: Fetch tags + if: ${{ github.event_name == 'release' }} + run: | + git fetch --tags --force - name: Install packages run: |