Skip to content

SBub/create-outside-pr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action pull request another repository

This GitHub Action copies a folder from the current repository to a location in another repository and create a pull request

Example Workflow

name: Push File

on: push

jobs:
  pull-request:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Create pull request
      uses: paygoc6/action-pull-request-another-repo@v1.0.1
      env:
        API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
      with:
        destination_repo: 'user-name/repository-name'
        destination_base_branch: 'branch-name'
        user_email: 'user-name@paygo.com.br'
        user_name: 'user-name'

Variables

  • destination_repo: The repository to place the file or directory in.
  • user_email: The GitHub user email associated with the API token secret.
  • user_name: The GitHub username associated with the API token secret.
  • destination_base_branch: [optional] The branch into which you want your code merged. Default is main.

ENV

  • API_TOKEN_GITHUB: You must create a personal access token in you account. Follow the link:

You must select the scopes: 'repo = Full control of private repositories', 'admin:org = read:org' and 'write:discussion = Read:discussion';

About

Action for create pull request in another repository

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 80.2%
  • Dockerfile 19.8%