milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
64 stars 15 forks source link

Upload only modified files in a branch or commit #33

Closed francois-viglob closed 5 months ago

francois-viglob commented 5 months ago

Hi.

The upload sync all files. Is there away(options like 'updated_only') that will make that only the modified files to be uploaded(no other sync)

Thanks!

milanmk commented 5 months ago

Please check the sync input option https://github.com/milanmk/actions-file-deployer#inputs

francois-viglob commented 5 months ago

Thanks for your reply.

Looks like the option can be : "Delta: Transfer only changed files (upload and delete) since last revision"

But, as it require 'fetch-depth: 0', it will sync all the repo context.

What i'm looking for is a way to upload only the modifies files in the PR., regardless of the other files of the branch (no sync of them, event if they are not in the remote ftp)

Ref: Delta Only supported for push, pull_request and workflow_dispatch events Requires fetch-depth: 0 option in checkout action