Skip to content

Seeking for guidance - commit to repoA creates a branch from RepoB and makes a PR to RepoB #26085

Discussion options

You must be logged in to vote

This is a rough outline of how you could design the workflow. Note that you need to use a repo scoped Personal Access Token to create the pull request in a remote repository.

This workflow goes in repo-a:

on:
  push:
    branches: [master]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      # Checkout repo-a
      - uses: actions/checkout@v2
  # Steps that use the template to build artifacts go here

  # Save the artifact
  - uses: actions/upload-artifact@v2
    with:
      name: artifact
      path: path/to/artifact

  # Checkout the default branch of repo-b
  - uses: actions/checkout@v2
    with:
      token: ${{ secrets.PAT }}
      repository: owner/repo-b

  # Download the art…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants