From 353d978ac0a8f7c61befd0921d3a258419a01035 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 14:47:55 +0000 Subject: [PATCH] chore: Remove duplicate version from "all" (#38) This action determines which versions of go we are supporting, including a latest, penultimate, and a minimum version. When the minimum and penultimate are the same version, we would have duplicate entries. This would lead to multiple runs of the same sets of tests (which would be fine), but failed when the test results were uploaded, due to naming collisions. Based on changes from go-sdk-common SHA 2fc5d4313b11f18ab8a964d153c663f9e0a64f60 Co-Authored-By: mkeeler@launchdarkly.com --- .github/workflows/go-versions.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-versions.yml b/.github/workflows/go-versions.yml index 86090db..b9d7309 100644 --- a/.github/workflows/go-versions.yml +++ b/.github/workflows/go-versions.yml @@ -45,8 +45,12 @@ jobs: - uses: actions/checkout@v4 - name: Set Go Versions id: set-env - run: cat ./.github/variables/go-versions.env > $GITHUB_OUTPUT + run: cat ./.github/variables/go-versions.env > $GITHUB_OUTPUT - name: Set Go Version Matrices id: set-matrix run: | - echo "all=[\"${{ steps.set-env.outputs.latest }}\",\"${{ steps.set-env.outputs.penultimate }}\",\"${{ steps.set-env.outputs.min }}\"]" >> $GITHUB_OUTPUT + if [ "${{ steps.set-env.outputs.penultimate }}" == "${{ steps.set-env.outputs.min }}" ]; then + echo "all=[\"${{ steps.set-env.outputs.latest }}\",\"${{ steps.set-env.outputs.penultimate }}\"]" >> $GITHUB_OUTPUT + else + echo "all=[\"${{ steps.set-env.outputs.latest }}\",\"${{ steps.set-env.outputs.penultimate }}\",\"${{ steps.set-env.outputs.min }}\"]" >> $GITHUB_OUTPUT + fi