Update README from Website #3
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 from Website | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "README.md.head" | |
- "Makefile" | |
- "website/**" | |
permissions: | |
contents: write | |
jobs: | |
update-README: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- run: make README.md | |
- name: Update README.md | |
if: github.ref == 'refs/heads/main' | |
run: | | |
git config --global user.email "bot@crftd.tech" | |
git config --global user.name "crftd-bot" | |
git add README.md | |
if ! git commit -m "chore: Update README from website/index.md"; | |
then | |
echo "No change to README.md, exiting successful" | |
exit 0 | |
fi | |
git pull origin --rebase | |
git push |