Skip to content

Commit faf40de

Browse files
authored
switched to new version
1 parent 1b4a62a commit faf40de

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/update-readme-cards.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}
@@ -34,5 +38,6 @@ jobs:
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

0 commit comments

Comments
 (0)