Skip to content

Fix(actions): Make detect-relevant-changes robust to missing SHAs#138

Merged
greenc-FNAL merged 1 commit intomainfrom
jules-bugfix-detect-changes-robustness
Dec 1, 2025
Merged

Fix(actions): Make detect-relevant-changes robust to missing SHAs#138
greenc-FNAL merged 1 commit intomainfrom
jules-bugfix-detect-changes-robustness

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

The detect-relevant-changes reusable action would previously fail if the base or head SHA was missing from the repository, for example, due to a force-push.

This change adds a check to verify that both SHAs exist before running 'git diff'. If either SHA is not found, the action now logs a warning and outputs matched=true instead of erroring out.

The detect-relevant-changes reusable action would previously fail if the base or head SHA was missing from the repository, for example, due to a force-push.

This change adds a check to verify that both SHAs exist before running 'git diff'. If either SHA is not found, the action now logs a warning and outputs matched=true instead of erroring out.
@greenc-FNAL greenc-FNAL merged commit fd710bd into main Dec 1, 2025
29 checks passed
@greenc-FNAL greenc-FNAL deleted the jules-bugfix-detect-changes-robustness branch December 2, 2025 15:49
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.

2 participants