From 0968db9eff8eb66bb0f33a03576d4502b163dbdc Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Mon, 30 Jan 2023 18:45:25 -0600 Subject: [PATCH 1/3] Amend token coverage for enablement in Action metadata file --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 405169e..0be0075 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: default: ${{ github.token }} required: true enablement: - description: 'Should a Pages site be enabled for the repository if not so already? This will only work with user-to-server tokens.' + description: 'Should a Pages site be enabled for the repository if not so already? This will only work for user-to-server tokens, or server-to-server tokens with both the `pages: write` and `administration: write` permissions granted.' default: 'false' required: false outputs: From 406a88e3a9d69eab79ef014d6d74be9687647aae Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 16 Feb 2023 12:51:13 -0600 Subject: [PATCH 2/3] Update wording Based on https://docs.github.com/en/rest/pages?apiVersion=2022-11-28#create-a-github-pages-site Co-authored-by: Yoann Chaudet --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0be0075..06b5d31 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: default: ${{ github.token }} required: true enablement: - description: 'Should a Pages site be enabled for the repository if not so already? This will only work for user-to-server tokens, or server-to-server tokens with both the `pages: write` and `administration: write` permissions granted.' + description: 'Try to enable Pages for the repository if it is not already enabled. This option requires a token other than GITHUB_TOKEN to be provided. In the context of a Personal Access Token, the repo scope or Pages write permission is required. In the context of a GitHub App, the administration:write and pages:write permissions are required.' default: 'false' required: false outputs: From 457b08648b0a63f342403cd96e3b386917c759ef Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 16 Feb 2023 12:52:17 -0600 Subject: [PATCH 3/3] Add some backticks --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 06b5d31..e894dd3 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: default: ${{ github.token }} required: true enablement: - description: 'Try to enable Pages for the repository if it is not already enabled. This option requires a token other than GITHUB_TOKEN to be provided. In the context of a Personal Access Token, the repo scope or Pages write permission is required. In the context of a GitHub App, the administration:write and pages:write permissions are required.' + description: 'Try to enable Pages for the repository if it is not already enabled. This option requires a token other than `GITHUB_TOKEN` to be provided. In the context of a Personal Access Token, the `repo` scope or Pages write permission is required. In the context of a GitHub App, the `administration:write` and `pages:write` permissions are required.' default: 'false' required: false outputs: