Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Commit 3fef490

Browse files
committed
ci
1 parent 3ac0520 commit 3fef490

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/actions/setup-git-committer/action.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,23 @@ inputs:
1010
outputs:
1111
token:
1212
description: "GitHub App token"
13-
value: ${{ steps.app-token.outputs.token }}
13+
value: ${{ steps.apptoken.outputs.token }}
1414
app-slug:
1515
description: "GitHub App slug"
16-
value: ${{ steps.app-token.outputs.app-slug }}
17-
user-id:
18-
description: "GitHub App user id"
19-
value: ${{ steps.get-user-id.outputs.user-id }}
16+
value: ${{ steps.apptoken.outputs.app-slug }}
2017
runs:
2118
using: "composite"
2219
steps:
2320
- name: Create app token
24-
id: app-token
21+
id: apptoken
2522
uses: actions/create-github-app-token@v2
2623
with:
2724
app-id: ${{ inputs.opencode-app-id }}
2825
private-key: ${{ inputs.opencode-app-secret }}
2926

30-
- name: Get GitHub App user id
31-
id: get-user-id
32-
run: |
33-
echo "user-id=$(gh api \"/users/${{ steps.app-token.outputs.app-slug }}%5Bbot%5D\" --jq .id)" >> "$GITHUB_OUTPUT"
34-
shell: bash
35-
env:
36-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
37-
3827
- name: Configure git user
3928
run: |
40-
git config --global user.name "${{ steps.app-token.outputs.app-slug }}[bot]"
41-
git config --global user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
29+
slug="${{ steps.apptoken.outputs.app-slug }}"
30+
git config --global user.name "${slug}[bot]"
31+
git config --global user.email "${slug}[bot]@users.noreply.github.com"
4232
shell: bash

0 commit comments

Comments
 (0)