From 576df4c9e5463619f4c9ed5991bd41e137924a2a Mon Sep 17 00:00:00 2001 From: Jordan McClintock Date: Wed, 2 Oct 2024 01:02:46 +0000 Subject: [PATCH] fix: switch uds-cli install method --- .github/actions/install-uds-cli/action.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/install-uds-cli/action.yaml b/.github/actions/install-uds-cli/action.yaml index 2c6a942..d58572f 100644 --- a/.github/actions/install-uds-cli/action.yaml +++ b/.github/actions/install-uds-cli/action.yaml @@ -6,8 +6,11 @@ runs: - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@c4fb4dcc8c58d57ae2e382a04d5444995c9c1917 # master + - name: Set UDS CLI Arch + id: setUdsCliArch + shell: bash + run: INPUT=${{ runner.arch == 'X64' && 'amd64' || runner.arch }}; echo "ARCH=${INPUT,,}" >> "$GITHUB_OUTPUT" + - name: Install UDS CLI shell: bash - run: | - brew tap defenseunicorns/tap - brew install uds + run: curl -o /usr/local/bin/uds -L https://github.com/defenseunicorns/uds-cli/releases/download/v${{ inputs.udsCliVersion }}/uds-cli_v${{ inputs.udsCliVersion }}_Linux_${{steps.setUdsCliArch.outputs.ARCH}} && chmod +x /usr/local/bin/uds