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