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

https://github.com/zk-phi/auto-pr

GitHub Action which automatically creates PR to keep a branch in sync with another
https://github.com/zk-phi/auto-pr

other

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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'
```