appleboy / appleboy/scp-action

Let execute some commands before moving files

Open
#46 7 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,

I ran into some issues with current action. On my server I have files (dot files like `.htacess` and `.env`), which need to stay untouched, while other files need to be replaced. As some of the files to replace contain hash in their names, there are multiple copies of the same file on the server (after every new deployment a new one comes). So ideally I would like delete all files in the target directory but dot files and then move rest of the files from my repository.

Right now it is impossible or is there some other methods to do that?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by tracing the action's command and file-copy flow, then determine how pre-copy commands could be configured. Done means users can remove or replace deployment files while preserving dot files and other requested paths, with the behavior documented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.