Skip to content

Commit 586dc8e

Browse files
authored
Update ai-docs-pr.yml (#986)
1 parent 0a3c751 commit 586dc8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ai-docs-pr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ name: Create Docs PR from Webhook Prompt
44
permissions:
55
contents: write
66
id-token: write
7-
7+
88
on:
99
repository_dispatch:
1010
types: [doc_update]
1111

1212
jobs:
1313
generate-docs:
14+
if: github.event_name == 'repository_dispatch'
1415
runs-on: ubuntu-latest
15-
16+
1617
steps:
1718
- name: Checkout Repo
1819
uses: actions/checkout@v4
@@ -36,6 +37,6 @@ jobs:
3637
git push origin "$branch"
3738
3839
- 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 }}"
4041
env:
4142
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)