Skip to content

A Github Action that can pull changes from a directory of a given repository.

License

Notifications You must be signed in to change notification settings

ipfs-examples/actions-pull-directory-from-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

- 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.

About

A Github Action that can pull changes from a directory of a given repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages