File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ jobs:
281
281
run : npm run gitpublish:npm
282
282
env :
283
283
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
284
+ GH_ACTOR : ${{ env.GITHUB_ACTOR }}
284
285
285
286
deploy-to-deno-branch :
286
287
name : Deploy to `deno` branch
@@ -317,3 +318,4 @@ jobs:
317
318
run : npm run gitpublish:deno
318
319
env :
319
320
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
321
+ GH_ACTOR : ${{ env.GITHUB_ACTOR }}
Original file line number Diff line number Diff line change @@ -28,14 +28,20 @@ if [ -z "${GH_TOKEN}" ]; then
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} " ;
35
+ fi ;
36
+
31
37
if [ ! -d $DIST_DIR ]; then
32
38
echo " Directory '${DIST_DIR} ' does not exist!"
33
39
exit 1;
34
40
fi ;
35
41
36
42
# Create empty directory
37
43
rm -rf $BRANCH
38
- git clone -b $BRANCH -- " https://${GITHUB_ACTOR} : ${GH_TOKEN } @github.com/graphql/graphql-js.git" $BRANCH
44
+ git clone -b $BRANCH -- " https://${GITHUB_CREDENTIALS } @github.com/graphql/graphql-js.git" $BRANCH
39
45
40
46
# Remove existing files first
41
47
rm -rf $BRANCH /** /*
You can’t perform that action at this time.
0 commit comments