Skip to content

Commit

Permalink
--initial-branch=master
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Oct 26, 2022
1 parent f63eaa6 commit fc001a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/actions/providers/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ fi

# Tell GitHub Pages not to run Jekyll
touch .nojekyll
apt-get install psmisc
[ -n "$INPUT_CNAME" ] && echo "$INPUT_CNAME" > CNAME

echo "Deploying to ${REPOSITORY} on branch ${BRANCH}"
echo "Deploying to https://${ACTOR}:${TOKEN}@github.com/${REPOSITORY}.git"
echo -e "$hr\nDEPLOYMENT\n$hr"
echo -e "\nDeploying to ${REPOSITORY} on branch ${BRANCH}"
echo -e "Deploying to https://github.com/${REPOSITORY}.git\n"

REMOTE_REPO="https://${ACTOR}:${TOKEN}@github.com/${REPOSITORY}.git" && \
git init && \
git init --initial-branch=master && \
git config user.name "${ACTOR}" && \
git config user.email "${ACTOR}@users.noreply.github.com" && \
git add . && \
Expand Down
8 changes: 5 additions & 3 deletions docs/.github/actions/providers/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ fi

# Tell GitHub Pages not to run Jekyll
touch .nojekyll
apt-get install psmisc
[ -n "$INPUT_CNAME" ] && echo "$INPUT_CNAME" > CNAME

echo "Deploying to ${REPOSITORY} on branch ${BRANCH}"
echo "Deploying to https://${ACTOR}:${TOKEN}@github.com/${REPOSITORY}.git"
echo -e "$hr\nDEPLOYMENT\n$hr"
echo -e "\nDeploying to ${REPOSITORY} on branch ${BRANCH}"
echo -e "Deploying to https://github.com/${REPOSITORY}.git\n"

REMOTE_REPO="https://${ACTOR}:${TOKEN}@github.com/${REPOSITORY}.git" && \
git init && \
git init --initial-branch=master && \
git config user.name "${ACTOR}" && \
git config user.email "${ACTOR}@users.noreply.github.com" && \
git add . && \
Expand Down
8 changes: 5 additions & 3 deletions docs/docs/.github/actions/providers/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ fi

# Tell GitHub Pages not to run Jekyll
touch .nojekyll
apt-get install psmisc
[ -n "$INPUT_CNAME" ] && echo "$INPUT_CNAME" > CNAME

echo "Deploying to ${REPOSITORY} on branch ${BRANCH}"
echo "Deploying to https://${ACTOR}:${TOKEN}@github.com/${REPOSITORY}.git"
echo -e "$hr\nDEPLOYMENT\n$hr"
echo -e "\nDeploying to ${REPOSITORY} on branch ${BRANCH}"
echo -e "Deploying to https://github.com/${REPOSITORY}.git\n"

REMOTE_REPO="https://${ACTOR}:${TOKEN}@github.com/${REPOSITORY}.git" && \
git init && \
git init --initial-branch=master && \
git config user.name "${ACTOR}" && \
git config user.email "${ACTOR}@users.noreply.github.com" && \
git add . && \
Expand Down

0 comments on commit fc001a3

Please sign in to comment.