forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclaude-react-on-review-dispatch.yml
More file actions
40 lines (36 loc) · 1.22 KB
/
claude-react-on-review-dispatch.yml
File metadata and controls
40 lines (36 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Claude React On Review Dispatch"
on:
workflow_run:
workflows: ["Claude React On Review"]
types: [completed]
jobs:
dispatch:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
permissions:
contents: read
actions: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: Download review context
id: download
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
continue-on-error: true
with:
name: review-context
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger Claude PR Review
if: steps.download.outcome == 'success'
env:
GH_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }}
run: |
pr_number=$(cat pr_number.txt)
review_id=$(cat review_id.txt)
gh workflow run claude-pr-review.yml \
-f pr_number="$pr_number" \
-f review_id="$review_id" \
--repo phpstan-bot/phpstan-src