{"id":27097590,"url":"https://github.com/dobbelina/multi_file_bandit","last_synced_at":"2025-08-10T08:04:52.528Z","repository":{"id":172643871,"uuid":"649554071","full_name":"dobbelina/multi_file_bandit","owner":"dobbelina","description":"This GitHub Action copies multiple files or folders from the current repository to a location in another repository","archived":false,"fork":false,"pushed_at":"2023-06-14T16:55:18.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T22:33:26.866Z","etag":null,"topics":["actions","file-transfer","folder-sync","folder-transfer","github-actions","rsync"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dobbelina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-05T06:14:40.000Z","updated_at":"2024-12-09T02:11:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e3d62f3-074a-4cac-943a-ce24d7e34d1e","html_url":"https://github.com/dobbelina/multi_file_bandit","commit_stats":null,"previous_names":["dobbelina/multi_file_bandit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dobbelina/multi_file_bandit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobbelina%2Fmulti_file_bandit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobbelina%2Fmulti_file_bandit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobbelina%2Fmulti_file_bandit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobbelina%2Fmulti_file_bandit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dobbelina","download_url":"https://codeload.github.com/dobbelina/multi_file_bandit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobbelina%2Fmulti_file_bandit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269693593,"owners_count":24460248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","file-transfer","folder-sync","folder-transfer","github-actions","rsync"],"created_at":"2025-04-06T10:48:26.036Z","updated_at":"2025-08-10T08:04:52.508Z","avatar_url":"https://github.com/dobbelina.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dobbelina/multi_file_bandit@main\nThis GitHub Action copies files or folders from the current repository to a location in another repository\n ```diff\n   Inspiration from @dmnemec\n + Uses rsync exclusively with full access to it's switches.\n + The rsync_option: makes it very versatile\n + with many configuration settings possible. \n + If rsync_option: is not used it defaults to \"-avrh\"\n ! Use with caution!, test with –dry-run before actual commit.\n \n + Multiple source files/directories separated by comma\n + \"file1.txt,file2.txt\" or '\"file 1.txt\",\"file 2.txt\"'\n + if there are spaces in the file/folder name(s)\n \n + Use ${{ github.event.head_commit.message }} to \n + preserve the original commit message.\n \n + git-lfs support.\n ```\n Important **Behavioural Notes** of rsync[^1].\n# Example Workflow\n```yml\nname: Push Files\n\non: push\n\njobs:\n  copy-files:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n\n      - name: Push test folder \u0026 1 file\n        uses: dobbelina/multi_file_bandit@main\n        env:\n          API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}\n        with:\n          source_file: \"My_Folder/,Another_Folder/test.txt\"\n          destination_repo: \"dobbelina/release-test\"\n          destination_folder: \"test-dir\" # Omit if destination root\n          user_email: \"example@email.com\"\n          user_name: \"dobbelina\"\n          commit_message: ${{ github.event.head_commit.message }}\n          rsync_option: \"-avrh --delete\" # Deletes any files in the \n                                         # destination that is not\n                                         # present in the source \n ```\n# Variables\n\nThe `API_TOKEN_GITHUB` needs to be set in the `Secrets` section of your repository options. You can retrieve the `API_TOKEN_GITHUB` [here](https://github.com/settings/tokens) (set the `repo` permissions). Fine-grained personal access tokens are much more secure as you can set\naccess to only choosen repositories, You need Actions \u0026 Contents set to **Access: Read and write** \u0026 Metadata **Access: Read-only**\n\n* source_file: The file(s) or directory/directories to be moved. Uses the same syntax as the `rsync` command. Include the path for any files not in the repositories root directory. Multiple source files/directories separated by comma \n`\"file1.txt,file2.txt\"` or `'\"file 1.txt\",\"file 2.txt\"'` if there are spaces in the file/folder name(s)\n* destination_repo: The repository to place the file or directory in.\n* destination_folder: [optional] The folder in the destination repository to place the file in, if not the root directory.\n* user_email: The GitHub user email associated with the API token secret.\n* user_name: The GitHub username associated with the API token secret.\n* destination_branch: [optional] The branch of the source repo to update, if not \"main\" branch is used.\n* destination_branch_create: [optional] A branch to be created with this commit, defaults to commiting in `destination_branch`\n* commit_message: [optional] A custom commit message for the commit. Defaults to `Update from https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}` \n use `${{ github.event.head_commit.message }}` to preserve the original commit message.\n* rsync_option: [optional] Full access to rsync's switches, if not used it defaults to \"-avrh\"\n* retry_attempts: [optional] Retry attempts if pushing commit failed, if not used it defaults to 10\n* git_server: [optional] Git server host, default github.com\n\n## Behavioural Notes\n[^1]: `Source_Folder` _rsync_ will copy the folder.  \n `Source_Folder/` with a trailing slash _rsync_ will only copy the contents of the folder.  \n `Source_Folder/*` with a trailing slash and an asterisk _rsync_ will only copy the contents   \n of the folder but without any hidden files or hidden subfolders.  \n The asterisk `*` will **expand all files in** `Source_Folder/*` **except the files \n and subfolders whose name starts with a dot** (hidden files or hidden subfolders).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobbelina%2Fmulti_file_bandit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdobbelina%2Fmulti_file_bandit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobbelina%2Fmulti_file_bandit/lists"}