From e3447c5b572b4b20c4da9c2e2995a7b36751be33 Mon Sep 17 00:00:00 2001 From: Jesper Terkelsen Date: Fri, 24 Jun 2022 12:36:54 +0200 Subject: [PATCH] chore: setup rebase automation Motivation: we want to get upstream changes automatically because they usually fix vulnerabilities --- .github/workflows/rebase.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/rebase.yml diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 0000000..27918c5 --- /dev/null +++ b/.github/workflows/rebase.yml @@ -0,0 +1,18 @@ +# .github/workflows/sync.yml +name: Rebase Upstream +on: + schedule: + - cron: "0 0 * * 0" # run once a week + workflow_dispatch: # run manually + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + fetch-depth: 10 # greater than the number of commits you made + - uses: tradeshift/rebase-upstream-action@master + # with: # all args are optional + # upstream: / + # branch: master