浏览代码

config git user

Vicente Canales 1 年之前
父节点
当前提交
f9a325d650
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/add-strict-types.yml

+ 2 - 0
.github/workflows/add-strict-types.yml

@@ -21,6 +21,8 @@ jobs:
       - name: Add strict types to new PHP files
         id: add_strict_types
         run: |
+          git config --global user.email "github-actions[bot]@users.noreply.github.com"
+          git config --global user.name "github-actions[bot]"
           git fetch origin +refs/heads/trunk:refs/remotes/origin/trunk --quiet
           NEW_PHP_FILES=$(git diff --name-only refs/remotes/origin/trunk HEAD -- '*.php' | xargs -r grep -LE 'declare\( strict_types=1 \)' || true)
           if [ -n "$NEW_PHP_FILES" ]; then