Skip to content

Commit

Permalink
Add get-latest-cli action (#8447)
Browse files Browse the repository at this point in the history
  • Loading branch information
banool committed Jul 7, 2023
1 parent ca6550e commit aec3d58
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/actions/get-latest-cli/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Get latest Aptos CLI"
description: |
Fetches the latest released Aptos CLI.
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
shell: bash
run: |
curl -fsSL "https://aptos.dev/scripts/install_cli.py" > install_cli.py
- name: Run installation script
shell: bash
run: |
python3 install_cli.py --bin-dir ${{ inputs.destination_directory }}

0 comments on commit aec3d58

Please sign in to comment.