From e99a0b5e0589434312ae5f0446ac38b9dd37e2cc Mon Sep 17 00:00:00 2001 From: Gladtbam <49943258+Gladtbam@users.noreply.github.com> Date: Wed, 19 Aug 2020 21:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0git=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/autoupdatefork.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/autoupdatefork.yml b/.github/workflows/autoupdatefork.yml index bcaf28d49..1766ee2d7 100644 --- a/.github/workflows/autoupdatefork.yml +++ b/.github/workflows/autoupdatefork.yml @@ -12,6 +12,7 @@ on: watch: types: [started] #修改[用户名],设置token并命名为GITHUB_TOKEN,具体方法百度 +#设置secrets,并命名为EMAIL,内容为邮箱地址,设置方法百度,不介意邮箱泄露,可以直接将${{ secrets.EMAIL }}替换为邮箱 jobs: build: runs-on: ubuntu-latest @@ -23,6 +24,10 @@ jobs: run: | sudo apt-get update sudo apt-get -y install git + - name: Set env + run: | + git config --global user.email "${{ secrets.EMAIL }}" + git config --global user.name "[用户名]" - name: Download Repository run: | git clone https://github.com/[用户名]/legado.git /opt/legado