Merge branch 'dev' of https://github.com/CodeShellDev/mailauth into dev #7
This file contains hidden or 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: | |
push: | |
paths: | |
- "docker-compose.yaml" | |
- ".github/templates/README.template.md" | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Replace File Placeholders in README | |
run: | | |
bash .github/helper-scripts/replace_placeholders.sh .github/templates/README.template.md README.md | |
- name: Commit & Push README.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add README.md | |
if git diff --cached --quiet; then | |
echo "No changes to commit." | |
else | |
git commit -m "Update README.md" | |
git push | |
fi |