Skip to content

Commit b4d2ef3

Browse files
docs: refine example action (#3)
Improved example action to ensure it is up to date and has the right permissions and github user. --------- Co-authored-by: Rick Staa <[email protected]>
1 parent 8e5f5c5 commit b4d2ef3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@ name: Update README cards
99

1010
on:
1111
schedule:
12-
- cron: "0 0 * * *"
12+
- cron: "0 0 * * *" # Runs once daily at midnight
1313
workflow_dispatch:
1414

15-
permissions:
16-
contents: write
15+
permissions: {}
1716

1817
jobs:
1918
build:
2019
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: write
23+
2124
steps:
22-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
2326

2427
- name: Generate stats card
2528
uses: readme-tools/github-readme-stats-action@v1
@@ -47,8 +50,8 @@ jobs:
4750

4851
- name: Commit cards
4952
run: |
50-
git config user.name "github-actions"
51-
git config user.email "[email protected]"
53+
git config user.name "github-actions[bot]"
54+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5255
git add profile/*.svg
5356
git commit -m "Update README cards" || exit 0
5457
git push

0 commit comments

Comments
 (0)