From 468933d4bf84c0561e87244c6a19897ab7ae4bb4 Mon Sep 17 00:00:00 2001 From: jixiuf Date: Wed, 25 Dec 2024 11:12:29 +0800 Subject: [PATCH] github workflow autorebase upstream --- .github/workflows/sync.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..6fa1155 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,27 @@ +# https://github.com/imba-tjd/rebase-upstream-action/blob/master/action.yml#L20C3-L20C7 +# .github/workflows/sync.yml +name: Rebase Upstream +on: + schedule: + # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions + - cron: "20 20 * * *" # run once a day + # - cron: "0 0 * * 0" # run once a week + workflow_dispatch: # run manually + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + # https://github.com/actions/checkout + fetch-depth: 0 # greater than the number of commits you made + - uses: jixiuf/rebase-upstream-action@master + with: # all args are optional + upstream: meow-edit/meow + branch: master + depth: 0 + + # with: # all args are optional + # upstream: / + # branch: master