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 authored Jun 1, 2023
1 parent 55a27cc commit 931f810
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 931f810

Please sign in to comment.