https://github.com/imoitself/repo-missile
github action to push to a repository
https://github.com/imoitself/repo-missile
actions automation bash-script bash-scripting folder-sync github-actions push reusable-workflow reusable-workflows sync synchronization workflow workflows
Last synced: 6 months ago
JSON representation
github action to push to a repository
- Host: GitHub
- URL: https://github.com/imoitself/repo-missile
- Owner: IMOitself
- License: gpl-3.0
- Created: 2025-07-02T11:55:36.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-07-10T10:09:11.000Z (6 months ago)
- Last Synced: 2025-07-10T16:03:02.924Z (6 months ago)
- Topics: actions, automation, bash-script, bash-scripting, folder-sync, github-actions, push, reusable-workflow, reusable-workflows, sync, synchronization, workflow, workflows
- Language: Shell
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# repo-missile
A fork of [github-action-push-to-another-repository](https://github.com/cpina/github-action-push-to-another-repository)
> [!NOTE]
> uses code from [danmindru's](https://github.com/danmindru/push-files-to-another-repository)
> which is a fork of [nkoppel's](https://github.com/nkoppel/push-files-to-another-repository)
> which is a fork of [cpina's](https://github.com/cpina/github-action-push-to-another-repository)
> [!WARNING]
> there's no need to change `IMOitself/repo-missile@0.2`
at the code below. it is set to a stable release
do not change it to `IMOitself/repo-missile@master`
as it is currently unstable.
current development is happening on [experiment](https://github.com/IMOitself/repo-missile/tree/experiment) branch.
## TODO
- [ ] refactor entrypoint.sh
- [ ] make it not squash commits on push
## Installation
> [!IMPORTANT]
> comming soon..
> [*(outdated guide)*](https://github.com/danmindru/push-files-to-another-repository/blob/master/README.md)
## Example usage
- **Example Repositories:**
- [IMOaswell/A](https://github.com/IMOaswell/A) and [IMOaswell/B](https://github.com/IMOaswell/B)
- **Example workflow file:**
- ```yaml
name: Sync Subfolder to Repo B
on:
push:
branches:
- master
paths:
- 'this/is/subfolder/**'
jobs:
push_subfolder_to_repo_b:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository A
uses: actions/checkout@v4
- name: Push 'this/is/subfolder' to Repository B
uses: IMOitself/repo-missile@0.2
env:
API_TOKEN_GITHUB: ${{ secrets.GH_PAT }}
with:
source-files: 'this/is/subfolder/'
destination-username: 'IMOaswell'
destination-repository: 'B'
destination-directory: 'this/is/subfolder'
commit-email: 'IMOaswell@users.noreply.github.com'
```