Add warning about PAT
This commit is contained in:
parent
d2e2974e27
commit
1b93ebd380
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
|
@ -1787,6 +1787,7 @@ function run() {
|
||||||
if (process.env['GITHUB_PAT']) {
|
if (process.env['GITHUB_PAT']) {
|
||||||
core.info(`✅ Use GITHUB_PAT`);
|
core.info(`✅ Use GITHUB_PAT`);
|
||||||
remote_url = remote_url.concat(process.env['GITHUB_PAT'].trim());
|
remote_url = remote_url.concat(process.env['GITHUB_PAT'].trim());
|
||||||
|
core.warning('Personal Access Token is not required anymore to trigger a page build on a public repository (see https://github.com/crazy-max/ghaction-github-pages/issues/1)');
|
||||||
}
|
}
|
||||||
else if (process.env['GITHUB_TOKEN']) {
|
else if (process.env['GITHUB_TOKEN']) {
|
||||||
core.info(`✅ Use GITHUB_TOKEN`);
|
core.info(`✅ Use GITHUB_TOKEN`);
|
||||||
|
|
|
@ -27,6 +27,9 @@ async function run() {
|
||||||
if (process.env['GITHUB_PAT']) {
|
if (process.env['GITHUB_PAT']) {
|
||||||
core.info(`✅ Use GITHUB_PAT`);
|
core.info(`✅ Use GITHUB_PAT`);
|
||||||
remote_url = remote_url.concat(process.env['GITHUB_PAT'].trim());
|
remote_url = remote_url.concat(process.env['GITHUB_PAT'].trim());
|
||||||
|
core.warning(
|
||||||
|
'Personal Access Token is not required anymore to trigger a page build on a public repository (see https://github.com/crazy-max/ghaction-github-pages/issues/1)'
|
||||||
|
);
|
||||||
} else if (process.env['GITHUB_TOKEN']) {
|
} else if (process.env['GITHUB_TOKEN']) {
|
||||||
core.info(`✅ Use GITHUB_TOKEN`);
|
core.info(`✅ Use GITHUB_TOKEN`);
|
||||||
remote_url = remote_url.concat('x-access-token:', process.env['GITHUB_TOKEN'].trim());
|
remote_url = remote_url.concat('x-access-token:', process.env['GITHUB_TOKEN'].trim());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user