File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 12
12
- uses : actions/create-github-app-token@v2
13
13
id : app-token
14
14
with :
15
+ owner : ${{ github.repository_owner }}
15
16
app-id : ${{ vars.SYNC_FILES_APP_ID }}
16
17
private-key : ${{ secrets.SYNC_FILES_TOKEN }}
17
18
@@ -20,14 +21,21 @@ jobs:
20
21
with :
21
22
token : ${{ steps.app-token.outputs.token }}
22
23
24
+ # Taken from https://github.com/actions/create-github-app-token/
25
+ - name : Get GitHub App User ID
26
+ id : get-user-id
27
+ run : echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
28
+ env :
29
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
30
+
23
31
- name : Run GitHub File Sync
24
32
uses : BetaHuhn/repo-file-sync-action@v1
25
33
with :
26
34
GH_INSTALLATION_TOKEN : ${{ steps.app-token.outputs.token }}
27
35
ASSIGNEES : lwjohnst86
28
36
IS_FINE_GRAINED : true
29
- GIT_USERNAME : github-actions [bot]
30
- GIT_EMAIL : 41898282+github-actions [bot]@users.noreply.github.com
37
+ GIT_USERNAME : ${{ steps.app-token.outputs.app-slug }} [bot]
38
+ GIT_EMAIL : ${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }} [bot]@users.noreply.github.com
31
39
COMMIT_PREFIX : " chore(sync): :hammer: "
32
40
BRANCH_PREFIX : chore
33
41
TEAM_REVIEWERS : admin
You can’t perform that action at this time.
0 commit comments