From f985489b7058cc2d0b57ba861d1b81546f803993 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 1 May 2024 17:58:21 -0600 Subject: [PATCH] better tag fetching in addition to using the checkout action for all the fetches, this will make sure we get a deep clone of the repository that can be used to resolve tags for pull requests if the submodule is ahead of the latest tag in the main origin --- .forgejo/workflows/forgejo-deb.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 1c66728..7567e04 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -20,6 +20,9 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + fetch-depth: 0 + fetch-tags: true + filter: tree:0 - uses: actions/setup-node@v3 with: @@ -34,12 +37,6 @@ jobs: id: ciprep run: ./.ci-make.sh actions-prep build-forgejo-deb - - name: fetch tags - run: | - git config --add safe.directory '*' - git fetch --tags --force - git submodule foreach 'git fetch --tags --force' - - uses: crystal/install-jq-action@v2.1.0 - run: ./.ci-make.sh ci-verify forgejo