File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 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
33name : Plugin Documentation Generator
44
55permissions :
66 contents : write
7+ pull-requests : write
78
89on :
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
You can’t perform that action at this time.
0 commit comments