File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- master
8
8
- theme-preview-script
9
- paths :
10
9
- " themes/index.js"
11
10
12
11
jobs :
27
26
env :
28
27
CI : true
29
28
PERSONAL_TOKEN : ${{ secrets.PERSONAL_TOKEN }}
29
+ with :
30
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ const parsePullRequestId = (githubRef) => {
15
15
16
16
async function run ( ) {
17
17
try {
18
- const octokit = github . getOctokit ( process . env . PERSONAL_TOKEN ) ;
18
+ const token = core . getInput ( "token" ) ;
19
+ const octokit = github . getOctokit ( token || process . env . PERSONAL_TOKEN ) ;
19
20
const pullRequestId = parsePullRequestId ( process . env . GITHUB_REF ) ;
20
21
21
22
let res = await octokit . pulls . get ( {
Original file line number Diff line number Diff line change @@ -113,19 +113,19 @@ const themes = {
113
113
text_color : "0cf574" ,
114
114
bg_color : "040f0f" ,
115
115
} ,
116
- " algolia" : {
116
+ algolia : {
117
117
title_color : "00AEFF" ,
118
118
icon_color : "2DDE98" ,
119
119
text_color : "FFFFFF" ,
120
120
bg_color : "050F2C" ,
121
121
} ,
122
- "great-gatsby" :{
122
+ "great-gatsby" : {
123
123
title_color : "ffa726" ,
124
124
icon_color : "ffb74d" ,
125
125
text_color : "ffd95b" ,
126
126
bg_color : "000000" ,
127
127
} ,
128
- " bear" : {
128
+ bear : {
129
129
title_color : "e03c8a" ,
130
130
icon_color : "00AEFF" ,
131
131
text_color : "bcb28d" ,
You can’t perform that action at this time.
0 commit comments