Skip to content

Commit 6038488

Browse files
authored
Simplify fallback value on error in skip merge queue action (#194)
1 parent 3c8f37f commit 6038488

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/actions/check-skip-merge-queue/action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ inputs:
3131

3232
outputs:
3333
up-to-date:
34-
value: ${{ steps.up-to-date.outputs.up-to-date }}
34+
value: ${{ steps.up-to-date.outputs.up-to-date || 'false' }}
3535
description: Whether the pull request is up-to-date with the base branch
3636
and is first in the merge queue, allowing it to skip the merge queue.
3737

@@ -102,10 +102,3 @@ runs:
102102
else
103103
echo "up-to-date=false" >> "$GITHUB_OUTPUT"
104104
fi
105-
106-
- name: Output `false` on failure
107-
if: steps.pr-details.outcome == 'failure' || steps.up-to-date.outcome == 'failure'
108-
shell: bash
109-
# If any previous step failed for any reason, instead of failing the
110-
# entire action, we catch the failure here and set the output to false.
111-
run: echo "up-to-date=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)