diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-18 12:11:59 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-18 12:11:59 +0800 |
| commit | b1694827328dcbf061b9b502e51830176b4f42df (patch) | |
| tree | 01b8f3ccb18363f9d82f2e7246642b5391d591f7 | |
| parent | d3ef0d0d027abe20513a704cd8f54d1579535890 (diff) | |
ci: configure git identity in workflows
| -rw-r--r-- | .github/workflows/ci-check-only.yml | 5 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 5 |
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). |
