-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 896 Bytes
/
readme-update.yml
File metadata and controls
34 lines (28 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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