From b8fe10bc9c9f69644067c9b378b890d09682a302 Mon Sep 17 00:00:00 2001 From: Zheng-Bote Date: Wed, 4 Sep 2024 11:42:34 +0200 Subject: [PATCH] upd: branches and paths --- .github/workflows/repo-actions_docu.yml_ | 41 ++++++++++++++++++++++++ .github/workflows/repo-create_doctoc.yml | 2 +- README.md | 8 ++++- 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/repo-actions_docu.yml_ diff --git a/.github/workflows/repo-actions_docu.yml_ b/.github/workflows/repo-actions_docu.yml_ new file mode 100644 index 0000000..d86efbb --- /dev/null +++ b/.github/workflows/repo-actions_docu.yml_ @@ -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 + +# +# + +# +# + +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 diff --git a/.github/workflows/repo-create_doctoc.yml b/.github/workflows/repo-create_doctoc.yml index 3922f7a..497fc03 100644 --- a/.github/workflows/repo-create_doctoc.yml +++ b/.github/workflows/repo-create_doctoc.yml @@ -13,7 +13,7 @@ on: branches: - "main" paths: - - "./README.md" + - "README.md" permissions: contents: write diff --git a/README.md b/README.md index d0eaa6c..45a9593 100644 --- a/README.md +++ b/README.md @@ -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 @@ -102,6 +102,12 @@ used folder structure ### Parameters + + + + + + ``` ```