Skip to content

feat: add shell command #7

feat: add shell command

feat: add shell command #7

Workflow file for this run

name: Update README
on:
push:
branches:
- master
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Combine readme-base.md and version into README.md
run: |
rm README.md
echo -e "$(cat readme-base.md)\n\n$(cat version)" > README.md
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Update README.md with version"
git push