Skip to content

ci(sync-readme): update all readme #4

ci(sync-readme): update all readme

ci(sync-readme): update all readme #4

Workflow file for this run

on:
push:
branches:
- 'main'
paths:
- 'README.md'
- '**/README.md'
jobs:
build:
permissions:
contents: write # for git push
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: |
find . -type f -name 'README.md' -exec cp --parents '{}' "${{ runner.temp }}" \;
tree -a ${{ runner.temp }}
- uses: actions/checkout@v4
with:
ref: gh-pages
- run: |
cp -r ${{ runner.temp }}/. .
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add **/README.md
git commit --signoff -m "Sync README from main"
git push