Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save merltron-pa/271d64094aabf93eef47dca27517cbd9 to your computer and use it in GitHub Desktop.
Save merltron-pa/271d64094aabf93eef47dca27517cbd9 to your computer and use it in GitHub Desktop.
steps:
- name: Checkout working branch
uses: actions/checkout@v1
- name: Setup ssh
run: |
mkdir ~/.ssh/
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
touch ~/.ssh/known_hosts
ssh-keyscan github.com >> ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment