Skip to content

Commit 41b30a9

Browse files
authored
Remove debug step and fix change detection logic
Removed debug step for listing generated files and adjusted the logic for detecting changes.
1 parent 0346184 commit 41b30a9

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

.github/workflows/fetch-and-regenerate-lists.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,15 @@ jobs:
3939
- name: Generate blocklists from sources
4040
run: |
4141
python "./scripts/generate_blocklists.py"
42-
- name: Debug - List generated files
43-
run: |
44-
echo "Checking by-format directory:"
45-
find by-format -type f -newer /tmp 2>/dev/null | head -20
46-
echo ""
47-
echo "Git status output:"
48-
git status --porcelain
4942
- name: Check for Changes
5043
id: check_changes
5144
run: |
5245
if [[ -z "$(git status --porcelain)" ]]; then
53-
echo "Changes detected."
54-
echo "has_changes=true" >> "$GITHUB_OUTPUT"
55-
else
5646
echo "No changes detected."
5747
echo "has_changes=false" >> "$GITHUB_OUTPUT"
48+
else
49+
echo "Changes detected."
50+
echo "has_changes=true" >> "$GITHUB_OUTPUT"
5851
fi
5952
- name: Commit and Push Changes
6053
if: steps.check_changes.outputs.has_changes == 'true'

0 commit comments

Comments
 (0)