Skip to content

Fix action checker: arithmetic exit code and missing labels#31

Merged
nerdalytics merged 1 commit into
trunkfrom
fix/action-checker-bugs
Jan 28, 2026
Merged

Fix action checker: arithmetic exit code and missing labels#31
nerdalytics merged 1 commit into
trunkfrom
fix/action-checker-bugs

Conversation

@nerdalytics
Copy link
Copy Markdown
Owner

Summary

Fixes two bugs in the action version checker workflow.

Bug 1: Arithmetic exit code

With set -e, ((OUTDATED_COUNT++)) exits with code 1 when OUTDATED_COUNT is 0 because the expression evaluates to 0 (false).

Fix: Added || true to prevent script termination.

Bug 2: Missing labels

The workflow failed with could not add label: 'security' not found when the repository doesn't have the required labels.

Fix: Create security and dependencies labels before creating the issue (using --force so it's idempotent).

- With set -e, ((OUTDATED_COUNT++)) exits with code 1 when the counter
  is 0 because the expression evaluates to 0 (false). Added || true.
- Create security and dependencies labels if they don't exist before
  creating the issue.
@nerdalytics nerdalytics merged commit 74441d8 into trunk Jan 28, 2026
12 checks passed
@nerdalytics nerdalytics deleted the fix/action-checker-bugs branch January 28, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant