Skip to content

Commit

Permalink
Fix conditional creation of label.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomthom committed Feb 27, 2025
1 parent 0de4e4d commit 1e8f763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/close-project-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ jobs:
dry_run=${{ github.event.inputs.dry_run }}
echo "Label to create: $label"
if [ "$dry_run" = "false" ]; then
if ! gh label list | grep -q "^$label$"; then
if ! gh label list --limit 100 | grep -q -w "$label"; then
echo "Creating label..."
gh label create "$label" --color FFFFFF
fi
fi
Expand Down

0 comments on commit 1e8f763

Please sign in to comment.