Skip to content

refactor(install): add branch specification #1027

refactor(install): add branch specification

refactor(install): add branch specification #1027

Workflow file for this run

name: Update Documentations
on: push
jobs:
ubuntu-local-verbose:
name: Update README
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate available flags and options
run: |
export START='<!--FLAGS:START-->'
export END='<!--FLAGS:END-->'
export OPTIONS="$(sh install.sh -h | sed 's/^/ /g')"
export OPTIONS="$(printf "%s\n\n%s\n\n%s" "$START" "$OPTIONS" "$END" | sed "s/\$/\\\\/g")"
export PATTERN='\n%s'
sed -i.bck -e "/<\!--FLAGS:START-->/,/<\!--FLAGS:END-->/ c\\$(printf "$PATTERN" "$OPTIONS")" README.md
sed -i.bck -e "/<\!--FLAGS:START-->/,/<\!--FLAGS:END-->/ s/\\\\$//g" README.md
- uses: EndBug/add-and-commit@v7
with:
add: 'README.md'
default_author: github_actions
message: 'docs(readme): update available flags and options'