添加git config

pull/321/head
Gladtbam 4 years ago committed by GitHub
parent 9bab8bc419
commit e99a0b5e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .github/workflows/autoupdatefork.yml

@ -12,6 +12,7 @@ on:
watch: watch:
types: [started] types: [started]
#修改[用户名],设置token并命名为GITHUB_TOKEN,具体方法百度 #修改[用户名],设置token并命名为GITHUB_TOKEN,具体方法百度
#设置secrets,并命名为EMAIL,内容为邮箱地址,设置方法百度,不介意邮箱泄露,可以直接将${{ secrets.EMAIL }}替换为邮箱
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -23,6 +24,10 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -y install git 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 - name: Download Repository
run: | run: |
git clone https://github.com/[用户名]/legado.git /opt/legado git clone https://github.com/[用户名]/legado.git /opt/legado

Loading…
Cancel
Save