Skip to content

#4 Add support for output variables#12

Merged
ndivho-makhuvha merged 6 commits into
masterfrom
feat/expose-structured-action-outputs-and-add-fail-on-warn-input
Jun 8, 2026
Merged

#4 Add support for output variables#12
ndivho-makhuvha merged 6 commits into
masterfrom
feat/expose-structured-action-outputs-and-add-fail-on-warn-input

Conversation

@ndivho-makhuvha

@ndivho-makhuvha ndivho-makhuvha commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Overview

Adds fail_count and warn_count output values for programmatic access to validation metrics.
Adds fail_on_warn input variable to optionally fail the action when certificates are nearing expiry.

Release Notes

  • Add fail_count and warn_count outputs to enable programmatic access to validation metrics
  • Add fail_on_warn input parameter to optionally fail the action when certificates are nearing expiry
  • Enhance GitHub Step Summary with metrics table showing failed and warning counts

Related

Closes #4

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds structured GitHub Action outputs (result, fail_count, warn_count) and a fail_on_warn input so workflows can both branch programmatically on validation metrics and optionally treat warnings as failures.

Changes:

  • Document fail_on_warn input and new outputs in README.md, including conditional-workflow examples.
  • Declare outputs: in action.yml and emit values via $GITHUB_OUTPUT.
  • Enhance Step Summary with a small metrics table (failed/warning counts).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
README.md Documents new input/output contract and shows how to use outputs in workflows.
action.yml Adds fail_on_warn input, declares outputs, emits outputs, and prints summary metrics.

Comment thread action.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@oto-macenauer-absa oto-macenauer-absa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gj, just minor comments

Comment thread action.yml Outdated
Comment thread action.yml Outdated
Comment thread README.md Outdated
ndivho-makhuvha and others added 2 commits June 8, 2026 09:27
Co-authored-by: Oto Macenauer <112095903+oto-macenauer-absa@users.noreply.github.com>

@oto-macenauer-absa oto-macenauer-absa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ndivho-makhuvha ndivho-makhuvha merged commit 7151343 into master Jun 8, 2026
2 checks passed
@ndivho-makhuvha ndivho-makhuvha deleted the feat/expose-structured-action-outputs-and-add-fail-on-warn-input branch June 8, 2026 07:50
oto-macenauer-absa added a commit that referenced this pull request Jun 8, 2026
The refactor that extracted inline bash to validate.sh dropped
fail_on_warn support, output variable emissions, and the metrics
table from the step summary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Expose structured action outputs and add fail_on_warn input

3 participants