From f10bdad55915bc9a761e2eabcc91379acdbd5cc1 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 1 Aug 2024 14:51:15 +1000 Subject: [PATCH] update-shallow --- .github/workflows/merge.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 509eb84..88e7523 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -11,9 +11,9 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main + ref: refs/heads/main token: ${{ secrets.GITHUB_TOKEN }} - # fetch-tags: true + fetch-tags: true # fetch-depth: 0 # - name: stinky but # run: git sparse-checkout disable; git checkout origin/main @@ -22,7 +22,14 @@ jobs: - name: shallow run: cat .git/shallow - name: deepen tree - run: git fetch --shallow-since 2023-08-17 --tags --recurse-submodules=no + run: git fetch --update-shallow --shallow-since 2023-08-17 --tags --recurse-submodules=no + # - name: deepen tree + # run: | + # depth=0 + # while ! git describe --tags main; do + # depth=$((depth + 1)) + # git fetch --tags --recurse-submodules=no --depth $depth origin main + # done - name: status run: git status - name: descibe