From 4f006753e829620cc29204a03e7bb7902a16a419 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:56:29 +0800 Subject: [PATCH 01/30] Create main.yml --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..393d9ff --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +# .github/workflows/sync.yml +name: Sync Fork + +on: + push: # push 时触发, 主要是为了测试配置有没有问题 + schedule: + - cron: '*/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - uses: TG908/fork-sync@v1.6.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + owner: box # fork 的上游仓库 user + head: main # fork 的上游仓库 branch + base: main # 本地仓库 branch From 750b081338f49df6b99f0a1615e87ecb28e90c2d Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:57:09 +0800 Subject: [PATCH 02/30] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 393d9ff..d69128d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ name: Sync Fork on: push: # push 时触发, 主要是为了测试配置有没有问题 schedule: - - cron: '*/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 + - cron: '0/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 jobs: repo-sync: runs-on: ubuntu-latest From 845b7a714bce2bf251393e22b024276f73066dc9 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:58:27 +0800 Subject: [PATCH 03/30] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d69128d..393d9ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ name: Sync Fork on: push: # push 时触发, 主要是为了测试配置有没有问题 schedule: - - cron: '0/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 + - cron: '*/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 jobs: repo-sync: runs-on: ubuntu-latest From 53729d159f13037148312b5819839c4d8db76b7b Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:59:44 +0800 Subject: [PATCH 04/30] =?UTF-8?q?Update=20and=20rename=20.github/workflows?= =?UTF-8?q?/main.yml=20to=20.github/=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B/m?= =?UTF-8?q?ain.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/{workflows => 工作流程}/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/{workflows => 工作流程}/main.yml (76%) diff --git a/.github/workflows/main.yml b/.github/工作流程/main.yml similarity index 76% rename from .github/workflows/main.yml rename to .github/工作流程/main.yml index 393d9ff..c8939ee 100644 --- a/.github/workflows/main.yml +++ b/.github/工作流程/main.yml @@ -4,7 +4,7 @@ name: Sync Fork on: push: # push 时触发, 主要是为了测试配置有没有问题 schedule: - - cron: '*/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 + - cron: '*/5 * * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 jobs: repo-sync: runs-on: ubuntu-latest From c3676c68cda51b871ad9109fcafadf99d6775944 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:01:00 +0800 Subject: [PATCH 05/30] =?UTF-8?q?Rename=20main.yml=20to=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=9B=B4=E6=96=B0.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/工作流程/{main.yml => 同步更新.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/工作流程/{main.yml => 同步更新.yml} (100%) diff --git a/.github/工作流程/main.yml b/.github/工作流程/同步更新.yml similarity index 100% rename from .github/工作流程/main.yml rename to .github/工作流程/同步更新.yml From 7a20ad54aeb51374ebf30f263beda5511cc8f39b Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:04:00 +0800 Subject: [PATCH 06/30] =?UTF-8?q?Update=20=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/工作流程/同步更新.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/工作流程/同步更新.yml b/.github/工作流程/同步更新.yml index c8939ee..16c8699 100644 --- a/.github/工作流程/同步更新.yml +++ b/.github/工作流程/同步更新.yml @@ -9,7 +9,7 @@ jobs: repo-sync: runs-on: ubuntu-latest steps: - - uses: TG908/fork-sync@v1.6.3 + - uses: tgymnich/fork-sync@v1.2.1 with: github_token: ${{ secrets.GITHUB_TOKEN }} owner: box # fork 的上游仓库 user From b5ae637fb970588763a494b10628b5af5667c5d6 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:05:54 +0800 Subject: [PATCH 07/30] =?UTF-8?q?Update=20=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/工作流程/同步更新.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/工作流程/同步更新.yml b/.github/工作流程/同步更新.yml index 16c8699..5251d3a 100644 --- a/.github/工作流程/同步更新.yml +++ b/.github/工作流程/同步更新.yml @@ -5,6 +5,7 @@ on: push: # push 时触发, 主要是为了测试配置有没有问题 schedule: - cron: '*/5 * * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 + workflow_dispatch: # on button click jobs: repo-sync: runs-on: ubuntu-latest From 46f59a3e5d38cb122a42e92aa2d62112ec375a14 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Wed, 27 Jul 2022 14:53:41 +0800 Subject: [PATCH 08/30] =?UTF-8?q?Rename=20=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0.yml=20to=20Sync.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/工作流程/{同步更新.yml => Sync.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/工作流程/{同步更新.yml => Sync.yml} (100%) diff --git a/.github/工作流程/同步更新.yml b/.github/工作流程/Sync.yml similarity index 100% rename from .github/工作流程/同步更新.yml rename to .github/工作流程/Sync.yml From d8f987f492fa9df0723e735c6984070e522db1da Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:18:42 +0800 Subject: [PATCH 09/30] Update Sync.yml --- .github/工作流程/Sync.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/工作流程/Sync.yml b/.github/工作流程/Sync.yml index 5251d3a..4f2a3dc 100644 --- a/.github/工作流程/Sync.yml +++ b/.github/工作流程/Sync.yml @@ -1,18 +1,18 @@ -# .github/workflows/sync.yml -name: Sync Fork - on: - push: # push 时触发, 主要是为了测试配置有没有问题 - schedule: - - cron: '*/5 * * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 - workflow_dispatch: # on button click + push: + branches: + -master + jobs: - repo-sync: + update_external_airflow_fork: runs-on: ubuntu-latest steps: - - uses: tgymnich/fork-sync@v1.2.1 + - uses: TobKed/github-forks-sync-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} - owner: box # fork 的上游仓库 user - head: main # fork 的上游仓库 branch - base: main # 本地仓库 branch + github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # 令牌 + upstream_repository: liu673cn/box # 上游仓库 + target_repository: woshishiq1/mao # 你要推送的仓库 + upstream_branch: master # 默认是拉取上游仓库的master分支 + target_branch: master # 默认推送到你的仓库master分支 + force: true # 是否强制推送 + tags: true # 确定是否使用-tags From 6cd72512f161775aa8990092085eef0479745ac0 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:22:17 +0800 Subject: [PATCH 10/30] Update Sync.yml --- .github/工作流程/Sync.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/工作流程/Sync.yml b/.github/工作流程/Sync.yml index 4f2a3dc..e4a9bfb 100644 --- a/.github/工作流程/Sync.yml +++ b/.github/工作流程/Sync.yml @@ -1,7 +1,5 @@ on: - push: - branches: - -master + workflow_dispatch: jobs: update_external_airflow_fork: From f32acc8b7bf23e6db1246cb3d74c872a855dc4d4 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:23:08 +0800 Subject: [PATCH 11/30] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..18a6a3e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 2ad9ca85ae3db375a1e0852fbe014e697b90a33b Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:24:39 +0800 Subject: [PATCH 12/30] =?UTF-8?q?Delete=20.github/=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/工作流程/Sync.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/工作流程/Sync.yml diff --git a/.github/工作流程/Sync.yml b/.github/工作流程/Sync.yml deleted file mode 100644 index e4a9bfb..0000000 --- a/.github/工作流程/Sync.yml +++ /dev/null @@ -1,16 +0,0 @@ -on: - workflow_dispatch: - -jobs: - update_external_airflow_fork: - runs-on: ubuntu-latest - steps: - - uses: TobKed/github-forks-sync-action@master - with: - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # 令牌 - upstream_repository: liu673cn/box # 上游仓库 - target_repository: woshishiq1/mao # 你要推送的仓库 - upstream_branch: master # 默认是拉取上游仓库的master分支 - target_branch: master # 默认推送到你的仓库master分支 - force: true # 是否强制推送 - tags: true # 确定是否使用-tags From 2c8f209bd05bdac5d0080840e2bdd530670427bb Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:26:05 +0800 Subject: [PATCH 13/30] Update main.yml --- .github/workflows/main.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18a6a3e..fa29f84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,22 +15,15 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on + update_external_airflow_fork: runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + - uses: TobKed/github-forks-sync-action@master + with: + github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # 令牌 + upstream_repository: liu673cn/box # 上游仓库 + target_repository: woshishiq1/mao # 你要推送的仓库 + upstream_branch: master # 默认是拉取上游仓库的master分支 + target_branch: master # 默认推送到你的仓库master分支 + force: true # 是否强制推送 + tags: true # 确定是否使用-tags From 828eaf581f1441da05f09516698bde4bcf38e498 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:27:50 +0800 Subject: [PATCH 14/30] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa29f84..e6c3d5f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: update_external_airflow_fork: runs-on: ubuntu-latest steps: - - uses: TobKed/github-forks-sync-action@master + - uses: TobKed/github-forks-sync-action@main with: github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # 令牌 upstream_repository: liu673cn/box # 上游仓库 From a662c23adefbefc0a97174a4c05c6d59886cf17c Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:30:19 +0800 Subject: [PATCH 15/30] Delete main.yml --- .github/workflows/main.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e6c3d5f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - update_external_airflow_fork: - runs-on: ubuntu-latest - steps: - - uses: TobKed/github-forks-sync-action@main - with: - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # 令牌 - upstream_repository: liu673cn/box # 上游仓库 - target_repository: woshishiq1/mao # 你要推送的仓库 - upstream_branch: master # 默认是拉取上游仓库的master分支 - target_branch: master # 默认推送到你的仓库master分支 - force: true # 是否强制推送 - tags: true # 确定是否使用-tags From 55dd00d4f7cb6738151f1b90eff1439845ed14d3 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:34:40 +0800 Subject: [PATCH 16/30] Create main.yml --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d5c0222 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,13 @@ +name: Sync all branches +on: + workflow_dispatch: + steps: + - uses: TobKed/github-forks-sync-action@master + with: + github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + upstream_repository: liu673cn/box + target_repository: woshishiq1/mao + upstream_branch: ${{ matrix.branch }} + target_branch: ${{ matrix.branch }} + force: true + tags: true From ebea8e9a0a0fa41859af0f1488a34ef72eb7d5d2 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:35:53 +0800 Subject: [PATCH 17/30] Update main.yml --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5c0222..0bf8c99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,13 @@ name: Sync all branches on: workflow_dispatch: + jobs: + + generate-matrix: + name: Generate matrix of branches + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - uses: TobKed/github-forks-sync-action@master with: From c0db8cea77924d3266859211647fff7edd7a774d Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:38:12 +0800 Subject: [PATCH 18/30] Update main.yml --- .github/workflows/main.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0bf8c99..6d19f6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,11 @@ name: Sync all branches on: workflow_dispatch: - jobs: - - generate-matrix: - name: Generate matrix of branches +jobs: + update_external_airflow_fork: runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - uses: TobKed/github-forks-sync-action@master steps: - uses: TobKed/github-forks-sync-action@master with: From 4d1b883bb80f4af46e923bf0f6e22f5717fe0f9b Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:39:01 +0800 Subject: [PATCH 19/30] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d19f6b..92ac5eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} upstream_repository: liu673cn/box target_repository: woshishiq1/mao - upstream_branch: ${{ matrix.branch }} - target_branch: ${{ matrix.branch }} + upstream_branch: master + target_branch: master force: true tags: true From 07ccf6d04086f458be01e723bf6dac2b90a670ec Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:40:09 +0800 Subject: [PATCH 20/30] Update main.yml --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92ac5eb..53ef9a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,8 +4,6 @@ on: jobs: update_external_airflow_fork: runs-on: ubuntu-latest - steps: - - uses: TobKed/github-forks-sync-action@master steps: - uses: TobKed/github-forks-sync-action@master with: From cd311bac84fa01c24353dbf9a3cd9f7047a80e75 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:42:05 +0800 Subject: [PATCH 21/30] Delete main.yml --- .github/workflows/main.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 53ef9a8..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Sync all branches -on: - workflow_dispatch: -jobs: - update_external_airflow_fork: - runs-on: ubuntu-latest - steps: - - uses: TobKed/github-forks-sync-action@master - with: - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - upstream_repository: liu673cn/box - target_repository: woshishiq1/mao - upstream_branch: master - target_branch: master - force: true - tags: true From cb402997a0508fa5cd358e7a0259f639f1c6eb5a Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:46:51 +0800 Subject: [PATCH 22/30] Create main.yml --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..37d2a94 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +# .github/workflows/sync.yml +name: Sync Fork + +on: + push: # push 时触发, 主要是为了测试配置有没有问题 + schedule: + - cron: '* */3 * * *' # 每3小时触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - uses: TG908/fork-sync@v1.6.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + owner: liu673cn/box # fork 的上游仓库 user + head: main # fork 的上游仓库 branch + base: main # 本地仓库 branch From 9e14966f47dd062fcaf83dd6f10823d06e853d3a Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:54:00 +0800 Subject: [PATCH 23/30] Delete main.yml --- .github/workflows/main.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 37d2a94..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -# .github/workflows/sync.yml -name: Sync Fork - -on: - push: # push 时触发, 主要是为了测试配置有没有问题 - schedule: - - cron: '* */3 * * *' # 每3小时触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 -jobs: - repo-sync: - runs-on: ubuntu-latest - steps: - - uses: TG908/fork-sync@v1.6.3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - owner: liu673cn/box # fork 的上游仓库 user - head: main # fork 的上游仓库 branch - base: main # 本地仓库 branch From e70026f04608399ddba2d4e4f090d966cd6f72ca Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:04:26 +0800 Subject: [PATCH 24/30] Create main.yml --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..45176fe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Sync Fork + +on: + schedule: + - cron: '*/30 * * * *' # every 30 minutes + workflow_dispatch: # on button click + +jobs: + sync: + + runs-on: ubuntu-latest + + steps: + - uses: tgymnich/fork-sync@v1.4 + with: + owner: liu673cn/box + base: master + head: master From aea6248c4483ffc8faea2b0f5c89d303aa80ac16 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:07:26 +0800 Subject: [PATCH 25/30] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45176fe..a0105fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: tgymnich/fork-sync@v1.4 + - uses: tgymnich/fork-sync@v1.2.1 with: owner: liu673cn/box base: master From 124ddaf23ec9c228eeae960c6418b1ff00bb2b1f Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:10:37 +0800 Subject: [PATCH 26/30] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0105fb..a773be5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,5 +14,5 @@ jobs: - uses: tgymnich/fork-sync@v1.2.1 with: owner: liu673cn/box - base: master - head: master + base: main + head: main From 90f0d9b71c11f194f68c52fd79f6cb8b5375f600 Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:14:38 +0800 Subject: [PATCH 27/30] Update main.yml --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a773be5..d1411fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,7 @@ jobs: steps: - uses: tgymnich/fork-sync@v1.2.1 with: - owner: liu673cn/box - base: main - head: main + token: ${{ secrets.PERSONAL_TOKEN }} + owner: llvm + base: master + head: master From 4d7c6278562021e223d47f156dacc2e7d0b02aeb Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:30:24 +0800 Subject: [PATCH 28/30] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d1411fa..df0a57e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,6 @@ jobs: - uses: tgymnich/fork-sync@v1.2.1 with: token: ${{ secrets.PERSONAL_TOKEN }} - owner: llvm + owner: liu673cn/box base: master head: master From 8262a4277fc8fa877795687c9a835c5d268fe87a Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:35:09 +0800 Subject: [PATCH 29/30] Delete main.yml --- .github/workflows/main.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index df0a57e..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Sync Fork - -on: - schedule: - - cron: '*/30 * * * *' # every 30 minutes - workflow_dispatch: # on button click - -jobs: - sync: - - runs-on: ubuntu-latest - - steps: - - uses: tgymnich/fork-sync@v1.2.1 - with: - token: ${{ secrets.PERSONAL_TOKEN }} - owner: liu673cn/box - base: master - head: master From e91263a33ceb0b8ffca4add10a871fa70fc2b07e Mon Sep 17 00:00:00 2001 From: woshishiq1 <90903172+woshishiq1@users.noreply.github.com> Date: Tue, 20 Sep 2022 18:45:04 +0800 Subject: [PATCH 30/30] Create github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..956b2d8 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." +