-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autodoc action to transfer input/output documentation to README
- Loading branch information
1 parent
ea8c4fb
commit c66cf77
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Update README.md with the latest actions.yml | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
|
||
- name: Run auto-doc | ||
uses: tj-actions/auto-doc@v3 | ||
|
||
- name: Verify Changed files | ||
uses: tj-actions/[email protected] | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
README.md | ||
- name: Create Pull Request | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
base: "main" | ||
title: "auto-doc: Updated README.md" | ||
branch: "chore/auto-doc-update-readme" | ||
commit-message: "auto-doc: Updated README.md" | ||
body: "auto-doc: Updated README.md" |