From 2c55a46c57ede82f8a871673180c949f82e92343 Mon Sep 17 00:00:00 2001 From: vn7n24fzkq Date: Tue, 8 Sep 2020 23:44:29 +0800 Subject: [PATCH] Add token details in generate preview --- dist/index.js | 4 ++++ package.json | 2 +- src/utils/file-writer.js | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index d64ee343a..f06982c7a 100755 --- a/dist/index.js +++ b/dist/index.js @@ -20188,6 +20188,10 @@ const generatePreviewMarkdown = function (isInGithubAction) { # Preview Cards Here are all cards with themes. +| :warning: | If your workflow does not generate all cards in output folder, then you need to use [Personal access token](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) instead of GITHUB_TOKEN in workflow. | +| :-------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + +[Personal token need those permission](https://github.com/vn7n24fzkq/github-profile-summary-cards/wiki/Personal-access-token-permissions) `; diff --git a/package.json b/package.json index f67c6fc95..4ca1af134 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-profile-summary-cards", - "version": "0.2.0", + "version": "0.2.1", "description": "Generate github profile summary cards", "main": "src/app.js", "scripts": { diff --git a/src/utils/file-writer.js b/src/utils/file-writer.js index 58df9fe02..cf821772b 100644 --- a/src/utils/file-writer.js +++ b/src/utils/file-writer.js @@ -38,6 +38,10 @@ const generatePreviewMarkdown = function (isInGithubAction) { # Preview Cards Here are all cards with themes. +| :warning: | If your workflow does not generate all cards in output folder, then you need to use [Personal access token](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) instead of GITHUB_TOKEN in workflow. | +| :-------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + +[Personal token need those permission](https://github.com/vn7n24fzkq/github-profile-summary-cards/wiki/Personal-access-token-permissions) `;