From 9bce0006691dc59add47563814acc449380c6f53 Mon Sep 17 00:00:00 2001 From: jenningsloy318 Date: Wed, 19 May 2021 11:38:59 +0800 Subject: [PATCH 1/2] Create build.yaml --- .github/workflows/build.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..fa4e176 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +on: + schedule: + - cron: '0 0 * * *' + + workflow_dispatch: # click the button on Github repo! + + +jobs: + sync_with_upstream: + runs-on: ubuntu-latest + name: Sync master with upstream + + steps: + - name: Checkout to master branch + uses: actions/checkout@v2 + with: + ref: master + - name: Pull upstream changes + id: sync + uses: aormsby/Fork-Sync-With-Upstream-action@v2.1 + with: + upstream_repository: liuyubobobo/Play-with-Data-Structures + upstream_branch: master + target_branch: master + git_pull_args: --allow-unrelated-histories --rebase=merges --ff + From 7e800c5d98e648961c3f7b2cff0a997cc797809b Mon Sep 17 00:00:00 2001 From: jenningsloy318 Date: Wed, 19 May 2021 11:39:31 +0800 Subject: [PATCH 2/2] Update build.yaml --- .github/workflows/build.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fa4e176..d4e8620 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,4 +23,3 @@ jobs: upstream_branch: master target_branch: master git_pull_args: --allow-unrelated-histories --rebase=merges --ff -