test #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ratbot | |
on: | |
pull_request_target | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
# Step to checkout the repository code | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Get the lines of code. | |
id: scc | |
uses: iryanbell/[email protected] | |
with: | |
args: ${{ env.workspace }} -irs --exclude-file kernels | |
# Step to comment on the PR | |
- name: Comment PR | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const codeReport = '${{ steps.scc.outputs.scc }}'; | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `${codeReport` | |
}) | |