python #12
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: Auto Reply to Pull Requests | |
on: | |
pull_request_target: | |
jobs: | |
auto_reply: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v37 | |
- name: Run script | |
id: script | |
run: | | |
echo Changes: ${{ steps.changed-files.outputs.all_changed_files }} | |
comment=$(python .github/scoring.py ${{ steps.changed-files.outputs.all_changed_files }}) | |
echo "$comment" | |
echo "$comment" > comment.txt | |
- name: Comment on pull request | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
filePath: comment.txt | |
comment_tag: "Scoring" | |
reactions: eyes, rocket |