From c8d2878da7aca2e0e6ad9047f44876e2a5f73603 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 11 May 2020 15:19:04 +0200 Subject: [PATCH] Mark GITHUB_PAT, committer_name and committer_email inputs as deprecated --- CHANGELOG.md | 5 +++++ action.yml | 6 ++++-- dist/index.js | 1 + package.json | 2 +- src/main.ts | 1 + 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8a2b2d7350..04f39cf622c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,13 @@ # Changelog +## 1.5.3 (2020/05/11) + +* Mark `GITHUB_PAT`, `committer_name` and `committer_email` inputs as deprecated + ## 1.5.2 (2020/05/09) * Update CI workflow +* Cleanup local paths from extra fields * Fix action yml ## 1.5.1 (2020/05/04) diff --git a/action.yml b/action.yml index 3e3679464f1..9819ddc9ced 100644 --- a/action.yml +++ b/action.yml @@ -26,10 +26,12 @@ inputs: description: 'Build directory to deploy' required: true committer_name: - description: 'Commit author''s name' + description: 'Deprecated. Use committer input with crazy-max/ghaction-github-pages@v2' + deprecationMessage: 'The committer_name input will not be supported. Use committer input with crazy-max/ghaction-github-pages@v2' required: false committer_email: - description: 'Commit author''s email' + description: 'Deprecated. Use committer input with crazy-max/ghaction-github-pages@v2' + deprecationMessage: 'The committer_email input will not be supported. Use committer input with crazy-max/ghaction-github-pages@v2' required: false commit_message: description: 'Commit message' diff --git a/dist/index.js b/dist/index.js index c24b3e2e844..3acacb184f2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1786,6 +1786,7 @@ function run() { let remote_url = String('https://'); if (process.env['GITHUB_PAT']) { core.info(`✅ Use GITHUB_PAT`); + core.warning(`Deprecated. Use GH_PAT with crazy-max/ghaction-github-pages@v2`); remote_url = remote_url.concat(process.env['GITHUB_PAT'].trim()); } else if (process.env['GITHUB_TOKEN']) { diff --git a/package.json b/package.json index d749afa7adf..8c7433ff6b5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/crazy-max/ghaction-docker-buildx.git" + "url": "git+https://github.com/crazy-max/ghaction-github-pages.git" }, "keywords": [ "actions", diff --git a/src/main.ts b/src/main.ts index 61a880170c2..9d31c60f2a4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,6 +26,7 @@ async function run() { let remote_url = String('https://'); if (process.env['GITHUB_PAT']) { core.info(`✅ Use GITHUB_PAT`); + core.warning(`Deprecated. Use GH_PAT with crazy-max/ghaction-github-pages@v2`); remote_url = remote_url.concat(process.env['GITHUB_PAT'].trim()); } else if (process.env['GITHUB_TOKEN']) { core.info(`✅ Use GITHUB_TOKEN`);