-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|