Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mghilardelli authored Oct 17, 2024
1 parent 63d36fa commit 022c799
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ jobs:
# Extract currently checked checkboxes
CURRENT_CHECKED=$(echo "${{ github.event.issue.body }}" | grep -E '\- \[x\]')
echo "Current: $CURRENT_CHECKED"
PREVIOUS_CHECKED=$(echo "$PREVIOUS_BODY" | grep -E '\- \[x\]')
echo "Previous: $PREVIOUS_CHECKED"
# Check if there are new checked checkboxes
NEW_CHECKED_LINES=$(echo "$CURRENT_CHECKED" | grep -Fxv -f <(echo "$PREVIOUS_CHECKED"))
echo "New: $NEW_CHECKED_LINES"
# Check if any checkbox is checked
if [ -n "$NEW_CHECKED_LINES" ]; then
Expand Down

0 comments on commit 022c799

Please sign in to comment.