Setup SSH
name: Exampleon: [push]jobs:
example:
name: Exampleruns-on: ubuntu-lateststeps:
- name: Setup SSHuses: MrSquaare/ssh-setup-action@v1with:
host: github.comprivate-key: ${{ secrets.SSH_PRIVATE_KEY }}name: Clone repositoryon: [push]jobs:
clone:
name: Cloneruns-on: ubuntu-lateststeps:
- name: Setup SSHuses: MrSquaare/ssh-setup-action@v1with:
host: github.comprivate-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Clone repositoryrun: git clone git@github.com:username/repository.gitname: Clone repositorieson: [push]jobs:
clone:
name: Cloneruns-on: ubuntu-lateststeps:
- name: Setup GitHub SSHuses: MrSquaare/ssh-setup-action@v1with:
host: github.comprivate-key: ${{ secrets.SSH_PRIVATE_KEY_GITHUB }}private-key-name: github
- name: Setup GitLab SSHuses: MrSquaare/ssh-setup-action@v1with:
host: gitlab.comprivate-key: ${{ secrets.SSH_PRIVATE_KEY_GITLAB }}private-key-name: gitlab
- name: Clone GitHub repositoryrun: git clone git@github.com:username/repository.git
- name: Clone GitLab repositoryrun: git clone git@gitlab.com:username/repository.git