Mark GITHUB_PAT, committer_name and committer_email inputs as deprecated

This commit is contained in:
CrazyMax 2020-05-11 15:19:04 +02:00
parent f1d4f1ae95
commit c8d2878da7
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
5 changed files with 12 additions and 3 deletions

View File

@ -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)

View File

@ -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'

1
dist/index.js generated vendored
View File

@ -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']) {

View File

@ -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",

View File

@ -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`);