FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
setup-python/src/setup-python.ts at master · conao3/setup-python · GitHub
conao3
/
setup-python
Public
forked from
actions/setup-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
setup-python
/
src
/
setup-python.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 553 Bytes
Breadcrumbs
setup-python
/
src
/
setup-python.ts
Copy path
File metadata and controls
19 lines (17 loc) · 553 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import
*
as
core
from
'@actions/core'
;
import
*
as
finder
from
'./find-python'
;
import
*
as
path
from
'path'
;
async
function
run
(
)
{
try
{
let
version
=
core
.
getInput
(
'python-version'
)
;
if
(
version
)
{
const
arch
:
string
=
core
.
getInput
(
'architecture'
,
{
required
:
true
}
)
;
await
finder
.
findPythonVersion
(
version
,
arch
)
;
}
const
matchersPath
=
path
.
join
(
__dirname
,
'..'
,
'.github'
)
;
console
.
log
(
`##[add-matcher]
${
path
.
join
(
matchersPath
,
'python.json'
)
}
`
)
;
}
catch
(
err
)
{
core
.
setFailed
(
err
.
message
)
;
}
}
run
(
)
;
Back
|
FazBrowse Home
|
New Git URL