mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-27 16:07:45 -07:00
Enhance PR reply workflow to include github-actions check
Added check for 'github-actions' author to prevent processing. Signed-off-by: James Cole <james@firefly-iii.org>
This commit is contained in:
@@ -19,13 +19,18 @@ jobs:
|
||||
- run: |
|
||||
BODY=$(gh pr view $NUMBER --json body)
|
||||
AUTHOR=$(gh pr view $NUMBER --json author)
|
||||
|
||||
|
||||
if [[ $AUTHOR == *"app/dependabot"* ]]; then
|
||||
echo "Is dependabot, stop"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Not dependabot!"
|
||||
if [[ $AUTHOR == *"github-actions"* ]]; then
|
||||
echo "Is github-actions, stop"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Not dependabot: $AUTHOR"
|
||||
|
||||
# $BODY must contain one of these four uses.
|
||||
if [[ $BODY != *"Code generation"* &&
|
||||
|
||||
Reference in New Issue
Block a user