https://github.com/ipfs-examples/actions-pull-directory-from-repo
A Github Action that can pull changes from a directory of a given repository.
https://github.com/ipfs-examples/actions-pull-directory-from-repo
Last synced: 4 months ago
JSON representation
A Github Action that can pull changes from a directory of a given repository.
- Host: GitHub
- URL: https://github.com/ipfs-examples/actions-pull-directory-from-repo
- Owner: ipfs-examples
- License: apache-2.0
- Created: 2021-06-11T15:38:04.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-01T08:39:09.000Z (about 1 year ago)
- Last Synced: 2025-07-28T14:46:12.951Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pull From Another Repository
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.
## Inputs
### `source-repo`
**Required** Source repository to pull directory.
### `source-folder-path`
**Required** Source repository path folder to be pulled.
### `source-branch`
**Required** Source repository branch to pull the directory. Defaults to `main`
### `target-branch`
**Required** Target repository branch to push the directory. Defaults to `main`
### `git-username`
**Required** Username to be used by git. Defaults to `github-actions`
### `git-email`
**Required** Email to be used by git. Defaults to `github-actions@github.com`
## Usage
```yaml
- 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: github-actions@github.com
```
This will pull all given folder/directory and push everything (if has changes) to the current repository using the git configurations provided.