/fetch-upstream

This is a GitHub Action that fetches the upstream and merges that to master when you open a PR.

Primary LanguageShellMIT LicenseMIT

Fetch Upstream

This GitHub Action was inspired by the Dev.to post on how to keep your forked repository current.

Usage

name: Fetch Upstream

on: pull_request

jobs:
  fetch-upstream:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Fetch Upstream
      uses: bdougie/fetch-upstream@master
      with:
        upstream: babel/babel
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}      

What it does

This GitHub Action will fetch the upstream base on the event you choose. You set up filters to using the GitHub Actions help documentation as a guide.