Commit graph

40 commits

Author SHA1 Message Date
ChristopherHX
98c991d13f
Only use github.token on github.com (#443)
* Only use github.token on github.com

This expression evaluates to `''` if called from GHES hosted elsewhere
You can still provide your token on both github.com and GHES

* Enshure blank result of expression and not false

* Revert "Revert "Pass the `token` input through on GHES (#427)" (#437)"

This reverts commit cf86e08a31.

* fix typo

* Add back the doc on the tool cache for self-hosted

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-08-30 15:02:20 -04:00
IvanZosimov
c318b92fd6 Fix review points 2022-07-28 09:38:24 +02:00
IvanZosimov
81cda82fb0 Fix review points 2022-07-26 14:47:59 +02:00
IvanZosimov
dd40245e5b Fix merge artifacts 2022-07-26 11:06:43 +02:00
IvanZosimov
1f0a39a525 Sync with Main branch 2022-07-26 11:05:09 +02:00
IvanZosimov
b2241a4754 Change yml and rebuild action 2022-07-26 11:01:07 +02:00
Dmitry Shibanov
2f06e9da25
Add check-latest functionality (#406) 2022-07-25 16:54:04 +02:00
IvanZosimov
799afeb796 Fix action.yml file 2022-07-13 13:43:28 +02:00
IvanZosimov
61fb4e42ab Fix review points 2022-07-13 12:17:04 +02:00
IvanZosimov
09086ccd46 Update action.yml file 2022-07-13 11:27:41 +02:00
Matthieu Darbois
00a5248c77
feature: add update-environment input (#411)
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).
2022-06-29 11:00:51 -04:00
Brian Cristante
cf86e08a31
Revert "Pass the token input through on GHES (#427)" (#437)
This reverts commit 7e4abae443.
2022-06-16 11:08:06 -04:00
Brian Cristante
7e4abae443
Pass the token input through on GHES (#427)
* Pass the`token` input through on GHES

* Update the description for `token`

* Fix dist files

* Update package-lock.json

* Update README

* Fix indent level in YAML snippet

* secret names can't start with GITHUB_
2022-06-13 14:55:47 -04:00
Andrew DiLosa
53e15292cd
add support for python-version-file (#336)
* add support for python-version-file

* Update action.yml

* update to v4, remove python-version default

* python-version overrides python-version-file, like setup-node
* checks '.python-version' by default if nothing else specified

* update tests, update to checkout@v3

* update build

* appease the linter

* remove old test for default python version

* revert readme changes

* update build
2022-06-02 16:37:57 +02:00
mayeut
ff706563d7
feature: add a python-path output
Expose a `python-path` output containing the chosen Python executable path.
2022-05-24 21:02:03 +02:00
Alexey
21c0493ecf
Cache hit output (#373)
* Remove useless await in getCacheDistributor calls

* Added cache-hit output

* Build action with cache-hit output

* Remove PromiseReturnType, add matchedKey == primaryKey check

* Update cache-distributor.ts

* Fix tests and rebuild
2022-04-05 09:57:13 -04:00
Patrick Arminio
18c67b44e4
Initial preparation to add support for poetry 2022-03-25 22:53:30 -05:00
Dmitry Shibanov
93cb78f17b
Update to node16 (#340) 2022-02-25 12:31:18 +03:00
Dmitry Shibanov
280924fbef
Implementation of python's caching (#266) 2021-11-17 13:31:22 +03:00
MaksimZhukov
e5af64b2df
Use GitHub releases to download python versions (#85)
This pull-request improves `setup-python` action to add ability to download specific version of Python on flight if it is not available by default.

**Details:**
`setup-python` action will download and install specific Python version from GitHub releases ([actions/python-versions](https://github.com/actions/python-versions/releases)) in case the version is not found in the local cache. All versions of Python available for installation are published in [actions/python-versions](https://github.com/actions/python-versions) repository.
All available versions are listed in the [version-manifest.json](https://github.com/actions/python-versions/blob/master/versions-manifest.json) file.

**Installation time:**

- Ubuntu / macOS: 10-20 seconds
- Windows: ~ 1 minute (mostly related to fact that we use MSI installer for Python on Windows)

Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2020-04-29 20:57:02 +03:00
Konrad Pabjan
9ac730844c
Update action.yml 2020-03-09 10:34:49 +01:00
Konrad Pabjan
c4000d2828
Update action.yml 2020-03-09 10:31:20 +01:00
Konrad Pabjan
5d7d800988
Merge branch 'releases/v1' into master 2020-03-09 10:29:14 +01:00
Robin Daumann
f8fb48e9f7
output installed version number after setup (#51)
* output installed version number after setup

* set output for the installed version
2020-03-09 08:18:12 +01:00
Brian Cristante
4f72cbc621 Fix quotes 2019-12-27 13:15:28 -05:00
Brian Cristante
c63dffb056 Address YAML linting errors 2019-12-27 13:08:34 -05:00
Edward Thomson
d7eab29295 Update description 2019-11-08 16:19:39 +00:00
Edward Thomson
a0449e049a Update description 2019-11-08 16:19:00 +00:00
Konrad Pabjan
4875b9e438 PR Feedback 2019-11-06 10:20:01 -05:00
Konrad Pabjan
bbc52402b0 Add branding and correctly point to main file 2019-11-05 17:12:58 -05:00
Konrad Pabjan
28a6c1b915 Remove old parameter that is deprecated 2019-11-05 15:43:35 -05:00
Danny McCormick
6f6fcee330
Deprecate version 2019-09-12 10:36:03 -04:00
Danny McCormick
24b4fa76d2
Consume toolkit from npmjs (#12) 2019-08-20 10:27:52 -04:00
Danny McCormick
e336b852d5
Use python-version (#10) 2019-08-13 16:30:18 -04:00
Danny McCormick
fe821292b0
Update action name 2019-08-12 14:40:58 -04:00
Danny McCormick
0611362f9b
Update action.yml 2019-08-08 13:34:19 -04:00
Danny McCormick
8ee77cc1ee
Add default arch 2019-07-19 16:07:45 -04:00
Danny McCormick
6923ce3409
Update action.yml 2019-07-09 12:42:38 -04:00
Danny McCormick
b96ef7391c
Strings can't have ' 2019-07-03 13:13:25 -04:00
Danny McCormick
39c08a0eaa Initial pass 2019-06-26 21:12:00 -04:00