mirror of
https://github.com/actions/runner-images.git
synced 2025-12-29 13:17:53 +08:00
28 lines
691 B
Bash
28 lines
691 B
Bash
#!/bin/bash
|
|
################################################################################
|
|
## File: pipx-packages.sh
|
|
## Desc: Install tools via pipx
|
|
################################################################################
|
|
|
|
|
|
export PATH="$PATH:/opt/pipx_bin"
|
|
|
|
# Install yamlint
|
|
pipx install yamllint
|
|
|
|
if ! command -v yamllint; then
|
|
echo "yamllint was not installed"
|
|
exit 1
|
|
fi
|
|
|
|
echo "yamllint is successfully installed"
|
|
|
|
# Install aws sam cli
|
|
pipx install aws-sam-cli --python /opt/hostedtoolcache/Python/3.7*/x64/bin/python3.7
|
|
|
|
if ! command -v sam; then
|
|
echo "aws sam cli was not installed"
|
|
exit 1
|
|
fi
|
|
|
|
echo "aws sam cli is successfully installed" |