This GitHub Action was inspired by the Dev.to post on how to keep your forked repository current.
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 }}
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.