Commit b3be847 1 parent c8f55ef commit b3be847 Copy full SHA for b3be847
File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 61
61
github_token: ${{ steps.app-token.outputs.token }}
62
62
` ` `
63
63
64
+ # ## Create a git committer string for an app installation
65
+
66
+ ` ` ` yaml
67
+ on: [pull_request]
68
+
69
+ jobs:
70
+ auto-format:
71
+ runs-on: ubuntu-latest
72
+ steps:
73
+ - uses: actions/create-github-app-token@v1
74
+ id: app-token
75
+ with:
76
+ # required
77
+ app-id: ${{ vars.APP_ID }}
78
+ private-key: ${{ secrets.PRIVATE_KEY }}
79
+ - id: committer
80
+ run: echo "string=${{steps.app-auth.outputs.app-slug}}[bot] <${{ steps.app-auth.outputs.installation-id }}+${{ steps.app-auth.outputs.app-slug }}[bot]@users.noreply.github.com>" >> "$GITHUB_OUTPUT"
81
+ - run: echo "committer string is ${{steps.committer.outputs.string}}"
82
+ ` ` `
83
+
64
84
# ## Create a token for all repositories in the current owner's installation
65
85
66
86
` ` ` yaml
You can’t perform that action at this time.
0 commit comments