From 150506ce8d09db5d86b869b4557ddf904a943e1a Mon Sep 17 00:00:00 2001 From: Mason Hunt Date: Fri, 13 Sep 2024 18:50:14 +1000 Subject: [PATCH] Candidate fix for fetching tags See: https://github.com/actions/checkout/issues/1471 --- .github/workflows/devops.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/devops.yml b/.github/workflows/devops.yml index 28bd674..4f4f5dd 100644 --- a/.github/workflows/devops.yml +++ b/.github/workflows/devops.yml @@ -15,11 +15,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-tags: false # See: https://github.com/actions/checkout/issues/1467 - - - name: 'Manually Fetch Tags (Workaround | See: https://github.com/actions/checkout/issues/1467)' - run: git fetch --tags - name: 'Install Node.js' uses: actions/setup-node@v4 @@ -58,8 +53,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-tags: false # See: https://github.com/actions/checkout/issues/1467 - name: 'Manually Fetch Tags (Workaround | See: https://github.com/actions/checkout/issues/1467)' run: git fetch --tags @@ -108,7 +101,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-tags: false # See: https://github.com/actions/checkout/issues/1467 + # See: https://github.com/actions/checkout/issues/1471 + fetch-depth: 0 + fetch-tags: true + filter: tree:0 - name: 'Manually Fetch Tags (Workaround | See: https://github.com/actions/checkout/issues/1467)' run: git fetch --tags