docs: fix #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 📰 Sync Readme | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "README.md" | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
jobs: | |
sync-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
- name: Sync Readme.md | |
run: | | |
git fetch --depth=1 origin gh-pages | |
git checkout gh-pages | |
git checkout main -- README.md | |
git add README.md | |
git commit -m "chore: sync readme" | |
git push origin gh-pages |