Skip to content

Commit 375968d

Browse files
committed
remoed direct push to dev branch and added PR creationg
1 parent c3f229c commit 375968d

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/update-plugin-docs.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Workflow to run plugin documentation generation then commit the updated changes
1+
# Workflow to run plugin documentation generation then create a PR with the updated changes
22

33
name: Plugin Documentation Generator
44

55
permissions:
66
contents: write
7+
pull-requests: write
78

89
on:
910
workflow_dispatch:
@@ -37,10 +38,18 @@ jobs:
3738
source venv/bin/activate
3839
pre-commit run --files docs/PLUGIN_DOC.md || true
3940
40-
- name: Commit and push changes
41-
run: |
42-
git config user.name "github-actions[bot]"
43-
git config user.email "github-actions[bot]@users.noreply.github.com"
44-
git add docs/PLUGIN_DOC.md
45-
git diff --staged --quiet || git commit --no-verify -m "docs: Update plugin documentation [automated]"
46-
git push
41+
- name: Create Pull Request
42+
uses: peter-evans/create-pull-request@v6
43+
with:
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
commit-message: "docs: Update plugin documentation [automated]"
46+
committer: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
47+
author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
48+
branch: automated-plugin-docs-update
49+
delete-branch: true
50+
title: "docs: Update plugin documentation [automated]"
51+
body: |
52+
Automated plugin documentation update generated by workflow.
53+
54+
This PR was automatically created by the Plugin Documentation Generator workflow.
55+
labels: documentation,automated

0 commit comments

Comments
 (0)