mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Fixing issue with GITHUB_REPOSITORY being undefined in scheduled tests
This commit is contained in:
parent
46e858d2a2
commit
b3c23a476e
@ -17,7 +17,9 @@ exports.isTest = process.env.UNIT_TEST;
|
|||||||
// Required action data.
|
// Required action data.
|
||||||
exports.action = {
|
exports.action = {
|
||||||
build: exports.folder,
|
build: exports.folder,
|
||||||
gitHubRepository: repository ? repository.full_name : "",
|
gitHubRepository: repository && repository.full_name
|
||||||
|
? repository.full_name
|
||||||
|
: process.env.GITHUB_REPOSITORY,
|
||||||
gitHubToken: core.getInput("GITHUB_TOKEN"),
|
gitHubToken: core.getInput("GITHUB_TOKEN"),
|
||||||
accessToken: core.getInput("ACCESS_TOKEN"),
|
accessToken: core.getInput("ACCESS_TOKEN"),
|
||||||
branch: core.getInput("BRANCH"),
|
branch: core.getInput("BRANCH"),
|
||||||
|
@ -11,7 +11,10 @@ export const isTest = process.env.UNIT_TEST;
|
|||||||
// Required action data.
|
// Required action data.
|
||||||
export const action = {
|
export const action = {
|
||||||
build: folder,
|
build: folder,
|
||||||
gitHubRepository: repository ? repository.full_name : "",
|
gitHubRepository:
|
||||||
|
repository && repository.full_name
|
||||||
|
? repository.full_name
|
||||||
|
: process.env.GITHUB_REPOSITORY,
|
||||||
gitHubToken: core.getInput("GITHUB_TOKEN"),
|
gitHubToken: core.getInput("GITHUB_TOKEN"),
|
||||||
accessToken: core.getInput("ACCESS_TOKEN"),
|
accessToken: core.getInput("ACCESS_TOKEN"),
|
||||||
branch: core.getInput("BRANCH"),
|
branch: core.getInput("BRANCH"),
|
||||||
|
Loading…
Reference in New Issue
Block a user