Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
084ce7fc8d | ||
|
|
171f970bee | ||
|
|
5514f4e8f1 | ||
|
|
ebc8ce4b7d | ||
|
|
bec23af5f9 | ||
|
|
0582a2adae | ||
|
|
683b919c20 | ||
|
|
70f11b0018 | ||
|
|
c6e2a7998b | ||
|
|
dfe91e3596 | ||
|
|
777a3ae786 | ||
|
|
1fa476ac6e |
@@ -6,7 +6,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- theme-preview-script
|
||||
paths:
|
||||
- "themes/index.js"
|
||||
|
||||
jobs:
|
||||
@@ -27,3 +26,5 @@ jobs:
|
||||
env:
|
||||
CI: true
|
||||
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -15,7 +15,8 @@ const parsePullRequestId = (githubRef) => {
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const octokit = github.getOctokit(process.env.PERSONAL_TOKEN);
|
||||
const token = core.getInput("token");
|
||||
const octokit = github.getOctokit(token || process.env.PERSONAL_TOKEN);
|
||||
const pullRequestId = parsePullRequestId(process.env.GITHUB_REF);
|
||||
|
||||
let res = await octokit.pulls.get({
|
||||
|
||||
+9
-3
@@ -113,19 +113,19 @@ const themes = {
|
||||
text_color: "0cf574",
|
||||
bg_color: "040f0f",
|
||||
},
|
||||
"algolia": {
|
||||
algolia: {
|
||||
title_color: "00AEFF",
|
||||
icon_color: "2DDE98",
|
||||
text_color: "FFFFFF",
|
||||
bg_color: "050F2C",
|
||||
},
|
||||
"great-gatsby":{
|
||||
"great-gatsby": {
|
||||
title_color: "ffa726",
|
||||
icon_color: "ffb74d",
|
||||
text_color: "ffd95b",
|
||||
bg_color: "000000",
|
||||
},
|
||||
"bear": {
|
||||
bear: {
|
||||
title_color: "e03c8a",
|
||||
icon_color: "00AEFF",
|
||||
text_color: "bcb28d",
|
||||
@@ -149,6 +149,12 @@ const themes = {
|
||||
icon_color: "88c0d0",
|
||||
bg_color: "2e3440",
|
||||
},
|
||||
test: {
|
||||
title_color: "81a1c1",
|
||||
text_color: "d8dee9",
|
||||
icon_color: "88c0d0",
|
||||
bg_color: "2e3440",
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = themes;
|
||||
|
||||
Reference in New Issue
Block a user