mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00

* Feature/private key (#71) * * rename private-key to key * * update CI * * update README / CHANGELOG * Feature/rename known hosts (#72) * * rename known-hosts to known_hosts * * update CI * * update README * * update CHANGELOG * * update README * Feature/known hosts required (#73) * * make known-hosts required * * update CI * * update README * * update CHANGELOG * * update README * Feature/docs v2 (#80) * * update version in README * * update badge URL * * remove duplicated reference * * update versions * * fix CHANGELOG * * fix version
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
|
|
on: push
|
|
name: macOS
|
|
jobs:
|
|
ssh:
|
|
name: Connect to github.com
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout source codes
|
|
uses: actions/checkout@v2
|
|
- name: Install SSH key
|
|
uses: ./.
|
|
with:
|
|
key: ${{ secrets.SSH_KEY }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
- name: print created files
|
|
run: ls -l ~/.ssh
|
|
- name: git clone through SSH
|
|
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
ssh-with-name:
|
|
name: Connect to github.com with name and config
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout source codes
|
|
uses: actions/checkout@v2
|
|
- name: Install SSH key
|
|
uses: ./.
|
|
with:
|
|
key: ${{ secrets.SSH_KEY }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
name: ssh_key_name # optional
|
|
config: | # optional
|
|
Host github
|
|
Hostname github.com
|
|
User git
|
|
IdentityFile ~/.ssh/ssh_key_name
|
|
- name: print created files
|
|
run: ls -l ~/.ssh
|
|
- name: git clone through SSH
|
|
run: git clone github:shimataro/ssh-key-action.git tmp
|