-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
33 lines (29 loc) · 1.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Install EB CLI
description: Installs the Elastic Beanstalk CLI to the GitHub Actions runner
inputs:
version:
description: Version of the EB CLI that will be installed (such as 3.20.3). Will default to latest if not specified.
required: false
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
with:
repository: 'aws/aws-elastic-beanstalk-cli-setup'
path: 'aws-elastic-beanstalk-cli-setup'
branch: 'master'
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: pipx install virtualenv
shell: bash
- name: Install latest EB CLI version
if: "${{ inputs.version == '' }}"
run: python $GITHUB_WORKSPACE/aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py
shell: bash
- name: Install specific EB CLI version
if: "${{ inputs.version != '' }}"
run: python $GITHUB_WORKSPACE/aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py --version ${{ inputs.version }}
shell: bash
- run: echo "~/.ebcli-virtual-env/executables" >> $GITHUB_PATH
shell: bash