File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,19 +10,23 @@ jobs:
1010 permissions :
1111 contents : write
1212 runs-on : ubuntu-latest
13+
1314 steps :
1415 - uses : actions/checkout@v4
1516
17+ - name : Ensure profile directory
18+ run : mkdir -p profile
19+
1620 - name : Generate stats card
17- uses : Pranesh-2005/github-readme-stats-fast-action@34233bca6ca233f7ad16b2131242e58e5d105f14
21+ uses : Pranesh-2005/github-readme-stats-fast-action@v2
1822 with :
1923 card : stats
2024 options : username=${{ github.repository_owner }}
2125 path : profile/stats.svg
2226 token : ${{ secrets.GITHUB_TOKEN }}
2327
2428 - name : Generate streak card
25- uses : Pranesh-2005/github-readme-stats-fast-action@34233bca6ca233f7ad16b2131242e58e5d105f14
29+ uses : Pranesh-2005/github-readme-stats-fast-action@v2
2630 with :
2731 card : streak
2832 options : username=${{ github.repository_owner }}
3438 git config user.name "github-actions"
3539 git config user.email "github-actions@users.noreply.github.com"
3640 git add profile/*.svg
37- git commit -m "Update README cards" || exit 0
41+ git diff --cached --quiet || git commit -m "Update README cards"
42+ git push git commit -m "Update README cards" || exit 0
3843 git push
You can’t perform that action at this time.
0 commit comments