Skip to content

Commit

Permalink
Add get-latest-cli action
Browse files Browse the repository at this point in the history
  • Loading branch information
banool committed May 31, 2023
1 parent 18a58be commit b751efa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/actions/get-latest-cli/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Get latest Aptos CLI"
description: |
Fetches the latest released Aptos CLI and optionally sets it up to operate against
a given network.
inputs:
destination_directory:
description: "Directory to install the CLI in"
required: true

runs:
using: composite
steps:
- name: Setup python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # pin@v4

- name: Get installation script
uses: curl -fsSL "https://aptos.dev/scripts/install_cli.py" > install_cli.py

- name: Run installation script
run: python install_cli.py --destination-directory ${{ inputs.destination_directory }}
shell: bash

0 comments on commit b751efa

Please sign in to comment.