A fork of github-action-push-to-another-repository
Note
uses code from danmindru's
which is a fork of nkoppel's
which is a fork of cpina's
Caution
the development of this project has been stopped. continuation will be done in commit-catcher.
REASON: just like AfterReadme it is not working as intended and has fundamental flaw in the system. i really did tried coming up with different ideas how to implement it but it lead me to burnout oof!
Warning
this is a note if you really really really wanna try this
there's no need to change IMOitself/[email protected]
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.
- refactor entrypoint.sh
- make it not squash commits on push
Important
sadly discontinued ;-;
(outdated guide)
- Example Repositories:
- IMOaswell/A and IMOaswell/B
- Example workflow file:
-
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/[email protected] 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: '[email protected]'