File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -280,8 +280,7 @@ jobs:
280
280
- name : Deploy to `npm` branch
281
281
run : npm run gitpublish:npm
282
282
env :
283
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
284
- GH_ACTOR : ${{ env.GITHUB_ACTOR }}
283
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
285
284
286
285
deploy-to-deno-branch :
287
286
name : Deploy to `deno` branch
@@ -317,5 +316,4 @@ jobs:
317
316
- name : Deploy to `deno` branch
318
317
run : npm run gitpublish:deno
319
318
env :
320
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
321
- GH_ACTOR : ${{ env.GITHUB_ACTOR }}
319
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -23,15 +23,13 @@ if [ -z "${DIST_DIR}" ]; then
23
23
exit 1;
24
24
fi ;
25
25
26
- if [ -z " ${GH_TOKEN } " ]; then
27
- echo ' Must provide GH_TOKEN as environment variable!'
26
+ if [ -z " ${GITHUB_TOKEN } " ]; then
27
+ echo ' Must provide GITHUB_TOKEN as environment variable!'
28
28
exit 1;
29
29
fi ;
30
30
31
- if [ -z " ${GH_ACTOR} " ]; then
32
- GITHUB_CREDENTIALS=" ${GH_TOKEN} " ;
33
- else
34
- GITHUB_CREDENTIALS=" ${GH_ACTOR} :${GH_TOKEN} " ;
31
+ if [ -z " ${GITHUB_ACTOR} " ]; then
32
+ echo ' Must provide GITHUB_ACTOR as environment variable!'
35
33
fi ;
36
34
37
35
if [ ! -d $DIST_DIR ]; then
41
39
42
40
# Create empty directory
43
41
rm -rf $BRANCH
44
- git clone -b $BRANCH -- " https://${GITHUB_CREDENTIALS } @github.com/graphql/graphql-js.git" $BRANCH
42
+ git clone -b $BRANCH -- " https://${GITHUB_ACTOR} : ${GITHUB_TOKEN } @github.com/graphql/graphql-js.git" $BRANCH
45
43
46
44
# Remove existing files first
47
45
rm -rf $BRANCH /** /*
You can’t perform that action at this time.
0 commit comments