Skip to content

Commit 7a9a3fe

Browse files
authored
Update update-readme.yml
Signed-off-by: AmirHossein Raeisi <[email protected]>
1 parent ed6d1bd commit 7a9a3fe

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/update-readme.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- dev
7+
paths:
8+
- '**.yaml'
79
pull_request:
810
branches:
911
- dev
@@ -24,11 +26,25 @@ jobs:
2426
run: python .github/scripts/update-readme.py
2527

2628

29+
- name: Run Python script to update README
30+
run: python .github/scripts/update-readme.py
31+
# Set up GPG for commit signing
32+
- name: Set up GPG
33+
run: |
34+
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
35+
git config --global user.name "Signing Bot"
36+
git config --global user.email "[email protected]"
37+
git config --global commit.gpgSign true
38+
git config --global user.signingkey ${{ secrets.GPG_KEY_ID }}
39+
40+
# Commit changes with GPG signing
2741
- name: Commit changes
28-
uses: stefanzweifel/git-auto-commit-action@v4
29-
with:
30-
commit_message: Update README table
31-
commit_user_name: GitHub Actions
32-
commit_user_email: github-actions[bot]@users.noreply.github.com
33-
branch: dev
34-
file_pattern: README.md
42+
run: |
43+
git add README.md
44+
git commit -S -m "Update README table"
45+
46+
# Push changes
47+
- name: Push changes
48+
run: |
49+
git pull origin dev --rebase
50+
git push origin dev

0 commit comments

Comments
 (0)