appleboy / appleboy/scp-action

How to ignore a folder, and how to set rm env?

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.6k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Hi,
This is a very useful GitHub action plugin, thanks for your hard work.

I got two issues when copying the artifacts to a remote machine:
1. how to ignore some folder in the source. The example only shows how to ignore a single file, and I tried to set it as below, however it does not works.
source: "folder1/,folder2/,!node_modules/"
2. I expect the target folder was removed before copying, so I would like to set rm. However, I am not sure what the value of rm should look like. A bool value, or a folder(to be removed)?

Can you please help?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the existing example and the action inputs for source and rm; determine how folder exclusions and target removal are currently represented. Done means documenting the accepted values for both inputs and adding examples that answer the two usage questions.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd, devops
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.