From 1f63f6835752db3f64fa3bdc05d46228e2bde1c3 Mon Sep 17 00:00:00 2001 From: Celeter <48249130+Celeter@users.noreply.github.com> Date: Sat, 22 Aug 2020 10:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8fork=E5=8F=AA=E5=AF=B9fork?= =?UTF-8?q?=E4=BA=86=E8=AF=A5=E9=A1=B9=E7=9B=AE=E7=9A=84=E4=BA=BA=E6=9C=89?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/autoupdatefork.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/autoupdatefork.yml b/.github/workflows/autoupdatefork.yml index 4e9a62855..9fa5d6425 100644 --- a/.github/workflows/autoupdatefork.yml +++ b/.github/workflows/autoupdatefork.yml @@ -2,20 +2,13 @@ name: update fork on: - release: - types: [published] - push: - tags: - - 'v*' schedule: - - cron: '50 3 * * *' #设置定时任务 - watch: - types: [started] -#1.设置secrets并命名为EMAIL,内容为邮箱地址,设置方法百度,不介意邮箱泄露,可以直接将${{ secrets.EMAIL }}替换为邮箱。2.设置用户名 + - cron: '0 16 * * *' #设置定时任务 + jobs: build: runs-on: ubuntu-latest - if: github.event.repository.owner.id == github.event.sender.id + if: ${{ github.event.repository.owner.id == github.event.sender.id && github.actor != 'gedoor' }} steps: - name: Checkout uses: actions/checkout@v2 @@ -27,11 +20,10 @@ jobs: sudo apt-get -y install git - name: Set env run: | - git config --global user.email "${{ secrets.EMAIL }}" - git config --global user.name "[用户名]" + git config --global user.email "github-actions@github.com" + git config --global user.name "github-actions" - name: Update fork run: | - cd /home/runner/work/legado/legado git remote add upstream https://github.com/gedoor/legado.git git remote -v git fetch upstream