Skip to content

Commit

Permalink
Simplify push to gh-pages
Browse files Browse the repository at this point in the history
Removes the code to avoid confirmation about unknown host when
pushing changes via ssh.
The Checkout action already do that.
Check the action ssh-known-hosts entry for details.
  • Loading branch information
manoelcampos committed Jun 2, 2022
1 parent 6229921 commit 440fdfb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ git rm -rf .github/ || true
echo "Committing changes to gh-pages branch"
git commit -m "$MSG" 1>/dev/null

# Avoids confirmation about unknown host when pushing changes via ssh.
echo "
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
" > /etc/ssh/ssh_config

# If the action is being run into the GitHub Servers,
# the checkout action (which is being used)
# automatically authenticates the container using ssh.
Expand Down

0 comments on commit 440fdfb

Please sign in to comment.