Skip to content

.github/workflows/auto-review-comment.yml #50

.github/workflows/auto-review-comment.yml

.github/workflows/auto-review-comment.yml #50

name: Auto Review Comment
on:
workflow_run:
workflows:
- Diff Compile
types:
- completed
permissions:
pull-requests: write
jobs:
auto-review:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Diff Artifact
uses: actions/download-artifact@v4
with:
name: my-diff
repository: ${{ github.repository_owner }}/${{ github.event.repository.name }}
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Download PR Comments Artifact
uses: actions/download-artifact@v4
with:
name: pr-comments
repository: ${{ github.repository_owner }}/${{ github.event.repository.name }}
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Download PR Number Artifact
uses: actions/download-artifact@v4
with:
name: pr-number
repository: ${{ github.repository_owner }}/${{ github.event.repository.name }}
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Analyze changes
uses: ./
id: auto-review-action
with:
token: ${{ secrets.GITHUB_TOKEN }}
datapath: docs/data.yml