Skip to content

Commit

Permalink
Merge pull request #2 from UffizziCloud/setup-binary
Browse files Browse the repository at this point in the history
Added README
  • Loading branch information
gopuman authored Jul 13, 2023
2 parents f678356 + 5414afe commit 0b91fbd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/test-action.yaml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Setup-Action
14 changes: 9 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ inputs:
release-tag:
description: 'Tag for the CLI release'
required: true
default: 'v'
default: 'TEST-6'
binary-name:
description: 'Name of the CLI binary'
required: true
default: 'uffizzi-linux-x64-TEST-1'
default: 'uffizzi-linux-x86_64-TEST-6'

runs:
using: 'composite'
steps:
- shell: bash
# Check if the input variable `action` is create
run: |
wget https://github.com/UffizziCloud/uffizzi_cli/releases/tag/${{ inputs.release-tag }}/${{ inputs.binary-name }}
wget https://github.com/UffizziCloud/uffizzi_cli/releases/download/${{ inputs.release-tag }}/${{ inputs.binary-name }} --quiet
chmod +x ${{ inputs.binary-name }}
./${{ inputs.binary-name }} login
- name: Export the binary
uses: actions/upload-artifact@v3
with:
name: my-artifact
path: ${{ inputs.binary-name }}

0 comments on commit 0b91fbd

Please sign in to comment.