mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
28 lines
707 B
Bash
28 lines
707 B
Bash
#!/bin/bash
|
|
################################################################################
|
|
## File: pipx-packages.sh
|
|
## Desc: Install tools via pipx
|
|
################################################################################
|
|
|
|
# Add pipx_bin to path
|
|
python3 -m pipx ensurepath
|
|
|
|
# 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.9/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" |