appleboy / appleboy/scp-action

Source folder created at target

Open
#133 1 comment 9 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.6k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

In the following example, the ./html folder is created at target, and doesnt matter how I structure it, including placing a / on the end of target. still creates the html folder,
```
# Copying files and artifacts via SSH
- name: Copying files to server www
uses: appleboy/scp-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
rm: false
source: "./html/*,!.git*,!README.md"
target: "${{ vars.REMOTE_TARGET }}"
```
Any solution or flag to change this behaviour?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the shown GitHub Actions workflow with the `source` and `target` values from the report, then inspect the action entry point that handles SCP path arguments. Confirm whether the target should contain the files directly rather than an `html` directory, and document or test the behavior of any available option.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.