We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4f46e commit 2e7f160Copy full SHA for 2e7f160
1 file changed
.github/actions/nx-affected-list/action.yml
@@ -21,11 +21,13 @@ runs:
21
id: affected
22
shell: bash
23
run: |
24
+ set -euo pipefail
25
ARGS=""
26
if [ -n "${{ inputs.base }}" ]; then ARGS="$ARGS --base=${{ inputs.base }}"; fi
27
if [ -n "${{ inputs.head }}" ]; then ARGS="$ARGS --head=${{ inputs.head }}"; fi
28
- AFFECTED=$(./node_modules/.bin/nx show projects --affected $ARGS 2>/dev/null | tr '\n' ' ' | xargs) || true
29
+ # Fail the step on nx/git errors so empty output cannot skip integration jobs silently.
30
+ AFFECTED=$(./node_modules/.bin/nx show projects --affected $ARGS | tr '\n' ' ' | xargs)
31
echo "affected=$AFFECTED" >> "$GITHUB_OUTPUT"
32
33
if [ -n "$AFFECTED" ]; then
0 commit comments