Skip to content

Commit

Permalink
upd: branches and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
zbbamboo committed Sep 4, 2024
1 parent fedf416 commit b8fe10b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/repo-actions_docu.yml_
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Repo - Actions parameter in README
# description: Renders Markdown tables for inputs and outputs from actions.yml file.
# description: https://github.com/mdvorak/update-action-readme

#<!--(inputs-start)-->
#<!--(inputs-end)-->

#<!--(outputs-start)-->
#<!--(outputs-end)-->

run-name: render actions.yml Inputs/Outputs for README tables by ${{ github.actor }}

on:
push:
branches: ["main"]
paths:
- action.yml
workflow_dispatch:

jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update README.md
uses: mdvorak/update-action-readme@v1

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "docs(readme): update README.md tables on ${{ github.ref_name }}"
commit-message: "docs(readme): updated README.md inputs/outputs tables"
body: "Updated README.md inputs/outputs tables, according to action.yml file"
branch: update-readme--${{ github.ref_name }}
delete-branch: true
labels: bot,documentation
2 changes: 1 addition & 1 deletion .github/workflows/repo-create_doctoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
branches:
- "main"
paths:
- "./README.md"
- "README.md"

permissions:
contents: write
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
## Description

![GHA](https://img.shields.io/badge/Github-Action-black?logo=githubactions)
![Node](https://img.shields.io/badge/Nodes-20-blue?logo=tsnode)
![Node](https://img.shields.io/badge/Node-20-blue?logo=tsnode)

description of this

Expand Down Expand Up @@ -102,6 +102,12 @@ used folder structure

### Parameters

<!--(inputs-start)-->
<!--(inputs-end)-->

<!--(outputs-start)-->
<!--(outputs-end)-->

```
<rz-footer></rz-footer>
```
Expand Down

0 comments on commit b8fe10b

Please sign in to comment.