aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-18 12:11:59 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-18 12:11:59 +0800
commitb1694827328dcbf061b9b502e51830176b4f42df (patch)
tree01b8f3ccb18363f9d82f2e7246642b5391d591f7 /.github
parentd3ef0d0d027abe20513a704cd8f54d1579535890 (diff)
ci: configure git identity in workflows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-check-only.yml5
-rw-r--r--.github/workflows/ci.yml5
2 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/ci-check-only.yml b/.github/workflows/ci-check-only.yml
index 7d31b88..dc97c81 100644
--- a/.github/workflows/ci-check-only.yml
+++ b/.github/workflows/ci-check-only.yml
@@ -26,6 +26,11 @@ jobs:
- uses: actions/checkout@v7
- uses: actions-rust-lang/setup-rust-toolchain@v1
+ - name: Configure git identity
+ run: |
+ git config --global user.email "foo@bar.sqz"
+ git config --global user.name "foo"
+
# Every check runs inside a git-lock / git-unlock pair: the final unlock
# doubles as the idempotency check, failing the job when the check left
# the working tree dirty (e.g. generated docs are out of date).
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eef6d91..d4892c3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,6 +28,11 @@ jobs:
- uses: actions/checkout@v7
- uses: actions-rust-lang/setup-rust-toolchain@v1
+ - name: Configure git identity
+ run: |
+ git config --global user.email "foo@bar.sqz"
+ git config --global user.name "foo"
+
# Every check runs inside a git-lock / git-unlock pair: the final unlock
# doubles as the idempotency check, failing the job when the check left
# the working tree dirty (e.g. generated docs are out of date).