Skip to content

Commit 34653e3

Browse files
committed
docs: improve action messaging
1 parent c5df7ee commit 34653e3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/actions/validate-requirements/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: "Validate requirements"
22

33
description: |
4-
Reject direct edits to `requirements.txt` by humans: the action fails if
5-
any commit touching the file in the compare range appears to be authored by a
6-
human or otherwise not from an allowed bot (unless the commit message exactly
7-
matches the canonical bot commit message).
4+
Reject direct edits to `requirements.txt` by humans unless there is not net change, the change is by an allowed bot, or the change uses bot-style commit message (so admin can override in a pinch).
85
96
inputs:
107
allowed_bots:

.github/actions/validate-requirements/check.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,5 @@ else
104104
echo "Latest message: \"$latest_subject\""
105105
exit 1
106106
fi
107+
108+
echo "'requirements.txt' unchanged or the change is allowed"

0 commit comments

Comments
 (0)