pre-release workflow fails: find|grep|head pipeline exits non-zero under pipefail #20

Closed
opened 2026-05-21 21:02:24 +00:00 by jmiller · 0 comments
Owner

Problem

The Detect platform step in pre-release.yml.template fails under bash -e -o pipefail because find -exec grep -l exits non-zero when grep does not match on XML files without the extension tag.

Root Cause

grep -l returns exit code 1 for non-matching files. Under find -exec this propagates as non-zero exit. Combined with bash pipefail the step is killed.

Fix

Append || true to each find|grep|head pipeline.

Discovered In

MokoWaaS repo pre-release workflow runs 9139, 9150, 9154.

## Problem The Detect platform step in pre-release.yml.template fails under bash -e -o pipefail because find -exec grep -l exits non-zero when grep does not match on XML files without the extension tag. ## Root Cause grep -l returns exit code 1 for non-matching files. Under find -exec this propagates as non-zero exit. Combined with bash pipefail the step is killed. ## Fix Append || true to each find|grep|head pipeline. ## Discovered In MokoWaaS repo pre-release workflow runs 9139, 9150, 9154.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#20