mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
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
This commit is contained in:
parent
ffcd00020c
commit
e6d4b8dcdd
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ inputs:
|
||||||
description: 'The target architecture (x86, x64) of the Python interpreter.'
|
description: 'The target architecture (x86, x64) of the Python interpreter.'
|
||||||
token:
|
token:
|
||||||
description: Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user.
|
description: Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user.
|
||||||
default: ${{ github.token }}
|
default: ${{ github.server_url == 'https://github.com' && github.token }}
|
||||||
cache-dependency-path:
|
cache-dependency-path:
|
||||||
description: 'Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies.'
|
description: 'Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies.'
|
||||||
outputs:
|
outputs:
|
||||||
|
|
Loading…
Add table
Reference in a new issue