Skip to content

Commit e0ca2dd

Browse files
authored
Update downloads.yaml
1 parent 9604090 commit e0ca2dd

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/downloads.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Update Download Badge
22

33
on:
4-
schedule:
5-
- cron: '0 0 * * *'
6-
74
workflow_dispatch:
85

96
permissions:
@@ -60,13 +57,13 @@ jobs:
6057
}
6158
EOF
6259
63-
- name: Commit badge
64-
run: |
65-
git config user.name github-actions
66-
git config user.email github-actions@github.com
67-
68-
git add .github/badges/downloads.json
69-
70-
git diff --cached --quiet || git commit -m "Update download badge"
71-
72-
git push
60+
- name: Create pull request
61+
uses: peter-evans/create-pull-request@v7
62+
with:
63+
commit-message: Update download badge
64+
title: Update download badge
65+
body: Automated update of total NuGet downloads badge.
66+
branch: automation/update-download-badge
67+
delete-branch: true
68+
add-paths: |
69+
.github/badges/downloads.json

0 commit comments

Comments
 (0)