You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aacdfa2
Browse filesBrowse the repository at this point in the historyBrowse files
This option allows to specify if the action shall update environment variables (default) or not.
This allows to use the setup-python action in a composite action without side effect (except downloading/installing python if version is missing).
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,26 @@ steps:
305
305
- run: pipenv install
306
306
```
307
307
308
+
# No environment update
309
+
310
+
The `no-environment-update` flag defaults to `false`.
311
+
With this setting, the action will add/update environment variables (e.g. `PATH`, `PKG_CONFIG_PATH`, `pythonLocation`) for `python` to just work out of the box.
312
+
313
+
If `no-environment-update` is set to `true`, the action will not add/update environment variables.
314
+
This can prove useful if you want the only side-effect to be to ensure python is installed and rely on the `python-path` output to run python.
315
+
Such a requirement on side-effect could be because you don't want your composite action messing with your user's workflows.
Python distributions are only available for the same [environments](https://github.com/actions/virtual-environments#available-environments) that GitHub Actions hosted environments are available for. If you are using an unsupported version of Ubuntu such as `19.04` or another Linux distribution such as Fedora, `setup-python` will not work. If you have a supported self-hosted runner and you would like to use `setup-python`, there are a few extra things you need to make sure are set up so that new versions of Python can be downloaded and configured on your runner.
0 commit comments