mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-17 15:34:54 +00:00
ci: commit as Zach Kelling, Hanzo Dev as co-author
Release and bump commits were authored by the automation address, so the work never reached the owner's contribution graph. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -396,15 +396,15 @@ jobs:
|
||||
git clone --depth 1 "https://x-access-token:[email protected]/hanzoai/homebrew-tap.git" "$tap"
|
||||
mkdir -p "$tap/Formula" && cp Formula/hanzo-dev.rb "$tap/Formula/hanzo-dev.rb"
|
||||
cd "$tap"
|
||||
git -c user.name=hanzo-dev -c [email protected] commit -qam "hanzo-dev $V" && git push -q || echo "formula unchanged"
|
||||
git -c user.name="Zach Kelling" -c user.email=[email protected] commit --trailer "Co-authored-by: Hanzo Dev <[email protected]>" -qam "hanzo-dev $V" && git push -q || echo "formula unchanged"
|
||||
- name: Bump
|
||||
env:
|
||||
GIT_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git add npm/package.json npm/package-lock.json Formula/hanzo-dev.rb 2>/dev/null || true
|
||||
git -c user.name=hanzo-dev -c [email protected] commit -qm "chore(release): $V [skip ci]"
|
||||
git -c user.name="Zach Kelling" -c user.email=[email protected] commit --trailer "Co-authored-by: Hanzo Dev <[email protected]>" -qm "chore(release): $V [skip ci]"
|
||||
push() { git push "$1" HEAD:main && return
|
||||
git fetch "$1" main && git -c user.name=hanzo-dev -c user.email=[email protected] rebase FETCH_HEAD && git push "$1" HEAD:main; }
|
||||
git fetch "$1" main && git -c user.name="Zach Kelling" -c user.email=[email protected] rebase FETCH_HEAD && git push "$1" HEAD:main; }
|
||||
push "https://x-access-token:[email protected]/hanzoai/dev.git"
|
||||
[ -z "${GIT_TOKEN:-}" ] || push "https://x:[email protected]/hanzoai/dev.git" || true
|
||||
|
||||
Reference in New Issue
Block a user