From edf01462f82f05d9498c96a864b2f31bc4c3ae13 Mon Sep 17 00:00:00 2001 From: "Daniel Porteous (dport)" Date: Thu, 1 Jun 2023 05:58:42 +0100 Subject: [PATCH] Add get-latest-cli action (#8447) --- .github/actions/get-latest-cli/action.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/actions/get-latest-cli/action.yaml diff --git a/.github/actions/get-latest-cli/action.yaml b/.github/actions/get-latest-cli/action.yaml new file mode 100644 index 0000000000000..edc450368f63f --- /dev/null +++ b/.github/actions/get-latest-cli/action.yaml @@ -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 }}