Skip to content

Commit

Permalink
fix: switch uds-cli install method
Browse files Browse the repository at this point in the history
  • Loading branch information
corang committed Oct 2, 2024
1 parent 88d8fa8 commit 576df4c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/install-uds-cli/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 576df4c

Please sign in to comment.