File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,16 @@ name: Create Docs PR from Webhook Prompt
4
4
permissions :
5
5
contents : write
6
6
id-token : write
7
-
7
+
8
8
on :
9
9
repository_dispatch :
10
10
types : [doc_update]
11
11
12
12
jobs :
13
13
generate-docs :
14
+ if : github.event_name == 'repository_dispatch'
14
15
runs-on : ubuntu-latest
15
-
16
+
16
17
steps :
17
18
- name : Checkout Repo
18
19
uses : actions/checkout@v4
36
37
git push origin "$branch"
37
38
38
39
- name : Create Pull Request
39
- run : gh pr create --base main --head "doc-update-${{ github.run_id }}" --title "Automated Doc Update" --body "Prompt:${{github.event.client_payload.prompt}}"
40
+ run : gh pr create --base main --head "doc-update-${{ github.run_id }}" --title "Automated Doc Update" --body "Prompt: ${{ github.event.client_payload.prompt }}"
40
41
env :
41
42
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments