A Github Action that can pull changes from a directory of a given repository. This action allows to create a fork and go repository based on a directory/folder of another repository.
Required Source repository to pull directory.
Required Source repository path folder to be pulled.
Required Source repository branch to pull the directory. Defaults to main
Required Target repository branch to push the directory. Defaults to main
Required Username to be used by git. Defaults to github-actions
Required Email to be used by git. Defaults to [email protected]
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo
with:
source-repo: "ipfs-examples/examples-source"
source-folder-path: "examples/example1"
source-branch: "main"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
This will pull all given folder/directory and push everything (if has changes) to the current repository using the git configurations provided.