From 6e8f60c7413824fa625703fa583d67114f850e43 Mon Sep 17 00:00:00 2001 From: wKich Date: Sun, 21 Mar 2021 09:56:04 +0100 Subject: [PATCH] add sync-upstream action --- .github/workflows/sync-rebase.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sync-rebase.yml diff --git a/.github/workflows/sync-rebase.yml b/.github/workflows/sync-rebase.yml new file mode 100644 index 000000000000..a3d97f85b7fb --- /dev/null +++ b/.github/workflows/sync-rebase.yml @@ -0,0 +1,27 @@ +name: Sync and Rebase + +on: + schedule: + - cron: '0 0 * * *' # every day + workflow_dispatch: # on button click + +jobs: + sync: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Sync with upstream + run: | + git remote add upstream git@github.com:storybookjs/storybook.git + git fetch upstream + git merge upstream/master + git push + - name: Rebase creevey branch + run: | + git checkout creevey + git rebase master + git push --force