Skip to content

Commit 1e8f763

Browse files
committed
Fix conditional creation of label.
1 parent 0de4e4d commit 1e8f763

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/close-project-issues.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ jobs:
116116
dry_run=${{ github.event.inputs.dry_run }}
117117
echo "Label to create: $label"
118118
if [ "$dry_run" = "false" ]; then
119-
if ! gh label list | grep -q "^$label$"; then
119+
if ! gh label list --limit 100 | grep -q -w "$label"; then
120+
echo "Creating label..."
120121
gh label create "$label" --color FFFFFF
121122
fi
122123
fi

0 commit comments

Comments
 (0)