Skip to content

Commit 87a615c

Browse files
committed
Don't use axobot for homebrew commits
We don't really want to be using an account we don't own to be listed as the committer on our homebrew tap. Given that we're using a PAT, set that user as the committer. This has the added benefit of making it easier to discover who to contact when the PAT expires.
1 parent e2bea6a commit 87a615c

25 files changed

+52
-96
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Nothing Yet!
44

5+
# Version 1.0.6 (2025-07-03)
6+
7+
- Change committer of Homebrew formulas to the owner of GITHUB_TOKEN.
8+
59
# Version 1.0.5 (2025-07-02)
610

711
- Enable Homebrew installer.

β€Žcargo-dist/templates/ci/github/partials/publish_homebrew.yml.j2β€Ž

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
env:
1010
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1111
PLAN: ${{ needs.plan.outputs.val }}
12-
GITHUB_USER: "axo bot"
13-
GITHUB_EMAIL: "admin+bot@axo.dev"
1412
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
1513
steps:
1614
- uses: actions/checkout@v4
@@ -28,8 +26,8 @@
2826
# so we need to find releases with a *.rb file, and publish with that filename.
2927
- name: Commit formula files
3028
run: |
31-
git config --global user.name "${GITHUB_USER}"
32-
git config --global user.email "${GITHUB_EMAIL}"
29+
git config --global user.name "${GITHUB_ACTOR}"
30+
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
3331

3432
for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith(".rb")] | any)'); do
3533
filename=$(echo "$release" | jq '.artifacts[] | select(endswith(".rb"))' --raw-output)

β€Žcargo-dist/tests/snapshots/akaikatana_basic.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/akaikatana_one_alias_among_many_binaries.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/akaikatana_two_bin_aliases.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/akaikatana_updaters.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/axolotlsay_alias.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/axolotlsay_alias_ignores_missing_bins.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/axolotlsay_basic.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcargo-dist/tests/snapshots/axolotlsay_basic_lies.snapβ€Ž

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)