Skip to content

zk-phi/auto-pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto PR

super simple GitHub Action which automatically creates PRs to keep a branch in sync with another

Based on "fork-sync" action by tgymnich

How it works

  • check if another Auto-PR is already opened for the repo
  • if no Auto-PR is opened, try to open a PR to merge HEAD into BASE
    • this fails if HEAD is not ahead of BASE

HEAD branch can also be in a fork repo. This may be useful to keep a fork in sync with the original.

Configuration

Example:

name: Auto PR

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: zk-phi/auto-pr@v0.1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          base: 'master'
          head: 'foo:master'

About

GitHub Action which automatically creates PR to keep a branch in sync with another

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •