Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incase someone looking for YAML Config (SSH Command) #14

Open
deepaksp opened this issue Aug 31, 2019 · 2 comments
Open

incase someone looking for YAML Config (SSH Command) #14

deepaksp opened this issue Aug 31, 2019 · 2 comments

Comments

@deepaksp
Copy link

hi, thank you for this action. now i dont need to login to server to pull latest repo

here is yaml config

`
name: Run SSH Command

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update Server Repo
uses: maddox/actions/ssh@master
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
HOST: ${{ secrets.HOST }}
USER: ${{ secrets.USER }}
with:
args: git pull or any code you want to run
`
Note - you can add more options please refer yaml config documentations

@deepaksp deepaksp changed the title incase someone looking for YAML Config incase someone looking for YAML Config (SSH Command) Aug 31, 2019
@Chathula
Copy link

@deepaksp , how to generate private key?

@DannyHinshaw
Copy link

Quick reformat for future peeps.

      - name: Update Server Repo
        uses: maddox/actions/ssh@master
        env:
          PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
          HOST: ${{ secrets.HOST }}
          USER: ${{ secrets.USER }}
        with:
          args: git pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants