Refer to actions/create-github-app-token and output addtional commiter infomation action.
app-id
: Github App App IDprivate-key
: Github App Private Key
token
: Github App Tokencommit-user
: Github App bot Commit Usercommit-email
: Github App bot Commit Email Address
on:
push:
branch:
- main
jobs:
review:
name: Code Test
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: atolycs/create-app-auth@v1
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PEM }}
...
- name: Commit comment
uses: ...
with:
token: ${{ steps.generate-token.outputs.token }}
...
Respect actions/create-github-app-token
- Directory Style
|+ root
\_ .eslintrc.json =>
\_ action.yml => Github Action Define file
\_ src => Script Source
\_ dist => Builded Bundle scripts
\_ README.md => This file
\_ package.json => Nodejs package Define file