An open API service indexing awesome lists of open source software.

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.

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.