Add logic to parse pulumi venv (#4994)
This commit is contained in:
parent
f364311064
commit
4316800f2f
|
@ -6,6 +6,9 @@ CHANGELOG
|
|||
- Add support for streamInvoke during update
|
||||
[#4990](https://github.com/pulumi/pulumi/pull/4990)
|
||||
|
||||
- Add logic to parce pulumi venv on github action
|
||||
[#4994](https://github.com/pulumi/pulumi/pull/4994)
|
||||
|
||||
## 2.6.1 (2020-07-09)
|
||||
|
||||
- Fix a panic in the display during CLI operations
|
||||
|
|
9
dist/actions/entrypoint.sh
vendored
9
dist/actions/entrypoint.sh
vendored
|
@ -118,7 +118,16 @@ fi
|
|||
|
||||
# If the user is running the Python SDK, we will need to install their requirements as well.
|
||||
if [ -e requirements.txt ]; then
|
||||
# Check if should use venv
|
||||
PULUMI_VENV=$(cat Pulumi.yaml | grep "virtualenv:" | cut -d':' -f2)
|
||||
if [ -z $PULUMI_VENV ]; then
|
||||
python3 -m venv $PULUMI_VENV
|
||||
source $PULUMI_VENV/bin/activate
|
||||
pip3 install -r requirements.txt
|
||||
deactivate
|
||||
else
|
||||
pip3 install -r requirements.txt
|
||||
fi
|
||||
fi
|
||||
|
||||
# Now just pass along all arguments to the Pulumi CLI, sending the output to a file for
|
||||
|
|
Loading…
Reference in a new issue