mirror of
https://github.com/actions/checkout.git
synced 2024-11-25 08:01:37 +08:00
gists: result.ref = refs/heads/master
This commit is contained in:
parent
3516176a33
commit
aab364320b
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -14518,6 +14518,9 @@ function getInputs() {
|
|||||||
result.ref = `refs/heads/${result.ref}`;
|
result.ref = `refs/heads/${result.ref}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (result.isGist && !result.ref && !result.commit) {
|
||||||
|
result.ref = 'refs/heads/master';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// SHA?
|
// SHA?
|
||||||
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
|
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
|
||||||
|
@ -76,6 +76,10 @@ export function getInputs(): IGitSourceSettings {
|
|||||||
result.ref = `refs/heads/${result.ref}`
|
result.ref = `refs/heads/${result.ref}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.isGist && !result.ref && !result.commit) {
|
||||||
|
result.ref = 'refs/heads/master'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// SHA?
|
// SHA?
|
||||||
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
|
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user