From c94c8cbac8e7f3f825c13f7ef26ec255acb3524b Mon Sep 17 00:00:00 2001 From: rti Date: Fri, 4 Oct 2024 16:17:40 +0200 Subject: [PATCH] fix(github/workflow): depth 0 to really fetch tags (#784) --- .github/workflows/build_publish_image_release.yml | 6 ++---- .github/workflows/create_release.yml | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_publish_image_release.yml b/.github/workflows/build_publish_image_release.yml index 470b18b6d..de638a4b9 100644 --- a/.github/workflows/build_publish_image_release.yml +++ b/.github/workflows/build_publish_image_release.yml @@ -8,7 +8,7 @@ on: - 'wdqs@*' - 'wdqs-frontend@*' - 'wdqs-proxy@*' - - 'wikibase@*' + - 'wikibase@*' permissions: contents: write @@ -36,8 +36,6 @@ jobs: fi - uses: actions/checkout@v4 - with: - fetch-tags: true - uses: ./.github/actions/setup-environment with: @@ -56,5 +54,5 @@ jobs: git config --global user.name 'wikibase suite github actions bot' git config --global user.email 'wikibase-suite-github-actions-bot@users.noreply.github.com' - + ./nx release publish -p ${{ steps.extract_tag.outputs.imageName }} diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 93a2384cf..b588660a9 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -35,6 +35,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-tags: true + fetch-depth: 0 - uses: ./.github/actions/setup-environment with: