Add warning about PAT

This commit is contained in:
CrazyMax 2020-05-04 01:36:39 +02:00
parent d2e2974e27
commit 1b93ebd380
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 4 additions and 0 deletions

1
dist/index.js generated vendored
View File

@ -1787,6 +1787,7 @@ function run() {
if (process.env['GITHUB_PAT']) {
core.info(`✅ Use GITHUB_PAT`);
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']) {
core.info(`✅ Use GITHUB_TOKEN`);

View File

@ -27,6 +27,9 @@ async function run() {
if (process.env['GITHUB_PAT']) {
core.info(`✅ Use GITHUB_PAT`);
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']) {
core.info(`✅ Use GITHUB_TOKEN`);
remote_url = remote_url.concat('x-access-token:', process.env['GITHUB_TOKEN'].trim());