1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
ssh-key-action/.github/workflows/verify-on-windows.yml
shimataro 3fe6393646
Feature/revert ci (#64)
* Revert "* update CI"

This reverts commit ab98bad3d9.

* * use itself

* * update itself

* * chckout codes

* * test

* * revert test
2020-01-18 10:57:51 +09:00

41 lines
1.2 KiB
YAML

# https://help.github.com/en/articles/workflow-syntax-for-github-actions
on: push
name: Windows
jobs:
ssh:
name: Connect to github.com
runs-on: windows-latest
steps:
- name: Checkout source codes
uses: actions/checkout@v1
- name: Install SSH key
uses: ./.
with:
private-key: ${{ secrets.SSH_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
- name: print created files
run: ls ~/.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: windows-latest
steps:
- name: Checkout source codes
uses: actions/checkout@v1
- name: Install SSH key
uses: ./.
with:
private-key: ${{ secrets.SSH_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
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 ~/.ssh
- name: git clone through SSH
run: git clone github:shimataro/ssh-key-action.git tmp