Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Oct 27, 2021
1 parent f04bd97 commit 9fb31bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resources/gitpublish.sh
Expand Up @@ -29,9 +29,7 @@ if [ -z "${GH_TOKEN}" ]; then
fi;

if [ -z "${GH_ACTOR}" ]; then
GITHUB_CREDENTIALS="${GH_TOKEN}";
else
GITHUB_CREDENTIALS="${GH_ACTOR}:${GH_TOKEN}";
echo 'Must provide GH_ACTOR as environment variable!'
fi;

if [ ! -d $DIST_DIR ]; then
Expand All @@ -41,7 +39,7 @@ fi;

# Create empty directory
rm -rf $BRANCH
git clone -b $BRANCH -- "https://${GITHUB_CREDENTIALS}@github.com/graphql/graphql-js.git" $BRANCH
git clone -b $BRANCH -- "https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/graphql/graphql-js.git" $BRANCH

# Remove existing files first
rm -rf $BRANCH/**/*
Expand Down

0 comments on commit 9fb31bf

Please sign in to comment.