Skip to content

Commit f40f00a

Browse files
authored
Sign workflow commit with AboutCode automation
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 13d7f3f commit f40f00a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/update-releases.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,10 @@ jobs:
117117
# 5 Commit & push changes if releases.json changed
118118
- name: Commit and push if changed
119119
run: |
120-
git config user.name "github-actions"
121-
git config user.email "github-actions@github.com"
120+
git config user.name "AboutCode Automation"
121+
git config user.email "automation@aboutcode.org"
122122
git add website/static/releases.json
123-
if ! git diff --cached --quiet; then
124-
git commit -m "Update releases for ${{ matrix.repo }}"
125-
git pull --rebase origin main
126-
git push
127-
else
128-
echo "No changes detected"
129-
fi
123+
git commit -m "$(echo -e "Update releases for ${{ matrix.repo }}\n\nSigned-off-by: AboutCode Automation <automation@aboutcode.org>")" || exit 0
124+
git pull --rebase origin main
125+
git push
130126
shell: bash

0 commit comments

Comments
 (0)