diff --git a/dist/index.js b/dist/index.js index c24b3e2..080d3d6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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`); diff --git a/src/main.ts b/src/main.ts index 61a8801..4ca7dc9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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());