Code Monkey home page Code Monkey logo

action-rsync's Introduction

Hi, there ๐Ÿ‘‹

You could open issues here to reach me! Ask me about anything ๐Ÿ˜‚

What I am using

Debian MacOS

Git GitHub Bitbucket

VSCode Nano Notion

Webpack ESLint Stylus Vue.js React.js

Flutter

Express.js Slim Actix web

Mariadb Redis Elasticsearch

Google Cloud Azure AWS Vultr

Cloudflare Drone Docker Netlify Firebase

action-rsync's People

Contributors

borje avatar up9cloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

action-rsync's Issues

bash: line 1: rsync: command not found

job failed on:
bash: line 1: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(228) [sender=3.2.3]

TARGET

How to I can set TARGET is a file
Thanks!

PR fails with "[action-rsync] Must specify $HOST!"

Hello devs,

I have a repo that seems to have the following issue.

When I have the following setting in my workflow it doesn't work:

on:
  pull_request:
    branches: [main]
    types: [closed]

jobs:
  build:
    # Only run this job if PR is merged
    if: github.event.pull_request.merged == true

It fails with the following message:

[action-rsync] Must specify $HOST! (target host)

However, it seems to work with the following setting:

on:
  push:
    branches: [main]

I'm not experiencing this on another repo. So it's a little puzzling to me.

My rsync config:

  # Deploy
  - name: rsync
    # Set the version you want: https://github.com/marketplace/actions/action-rsync
    uses: up9cloud/action-rsync@master
    env:
      # Required
      HOST: ${{secrets.SSH_HOSTNAME}} # host
      USER: ${{secrets.SSH_USER_NAME}} # target server ssh user
      PORT: 22 # target server ssh port
      KEY: ${{secrets.SSH_KEY}} # ssh private key
      SSH_ARGS: '-p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
      # source folder or file
      SOURCE: ./ 
      # target path for folder or file
      TARGET: ${{secrets.REMOTE_TARGET_PATH}}
      # Optional (with `default` values)
      VERBOSE: false # set it true if you want some tips
      # The final rsync arguments will be "$ARGS $ARGS_MORE".
      ARGS: -avz # rsync arguments

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.