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: 2 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 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-01T07:36:53.000Z (3 months ago)
- Last Synced: 2025-05-01T08:30:33.531Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 24.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 `[email protected]`
## 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: [email protected]
```This will pull all given folder/directory and push everything (if has changes) to the current repository using the git configurations provided.