We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70bf3d commit 52d3016Copy full SHA for 52d3016
.github/workflows/fetch-ips.yml
@@ -34,16 +34,16 @@ jobs:
34
35
- name: Commit and push changes
36
run: |
37
- git config user.name "Sefinek Actions"
38
- git config user.email "[email protected]"
+ MODIFIED_FILES=$(git status --porcelain)
+ FILE_COUNT=$(echo "$MODIFIED_FILES" | wc -l)
39
40
- if git diff --quiet; then
+ if [[ $FILE_COUNT -eq 0 ]]; then
41
echo "Canceled. No files were modified."
42
exit 0
43
fi
44
45
- MODIFIED_FILES=$(git diff --name-only HEAD)
46
- FILE_COUNT=$(echo "$MODIFIED_FILES" | wc -l)
+ git config user.name "Sefinek Actions"
+ git config user.email "[email protected]"
47
48
git commit -am "Update the list of malicious IP addresses [$FILE_COUNT files]" -m "$MODIFIED_FILES"
49
git push origin main
0 commit comments