update README with mariadb-galera #2
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: "Update README on gh-pages" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'README.md' | |
permissions: | |
contents: write | |
pages: write | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the main branch | |
uses: actions/checkout@v3 | |
with: | |
ref: 'main' | |
- name: Copy README.md to a temporary directory | |
run: | | |
mkdir tmp | |
cp README.md /tmp/README.md | |
- name: Checkout gh-pages branch | |
uses: actions/checkout@v3 | |
with: | |
ref: 'gh-pages' | |
path: 'gh-pages' | |
- name: Replace README.md on gh-pages | |
run: | | |
cp /tmp/README.md gh-pages/README.md | |
- name: Commit and push changes | |
working-directory: ./gh-pages | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add README.md | |
git commit -m "Update README.md" | |
git push |