Skip to content

Commit 3356db3

Browse files
Fix API breakage workflow exit codes (#2309)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 5015e72 commit 3356db3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/agent-server-rest-api-breakage.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
continue-on-error: ${{ !startsWith(github.head_ref, 'rel-') }}
3939
run: |
4040
uv run --with packaging python .github/scripts/check_agent_server_rest_api_breakage.py 2>&1 | tee api-breakage.log
41-
echo "exit_code=${PIPESTATUS[0]}" >> "$GITHUB_OUTPUT"
42-
exit "${PIPESTATUS[0]}"
41+
exit_code=${PIPESTATUS[0]}
42+
echo "exit_code=${exit_code}" >> "$GITHUB_OUTPUT"
43+
exit "${exit_code}"
4344
4445
- name: Post REST API breakage report to PR
4546
if: ${{ always() && github.event_name == 'pull_request' }}

.github/workflows/api-breakage.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
continue-on-error: ${{ !startsWith(github.head_ref, 'rel-') }}
3131
run: |
3232
uv run python .github/scripts/check_sdk_api_breakage.py 2>&1 | tee api-breakage.log
33-
echo "exit_code=${PIPESTATUS[0]}" >> "$GITHUB_OUTPUT"
34-
exit "${PIPESTATUS[0]}"
33+
exit_code=${PIPESTATUS[0]}
34+
echo "exit_code=${exit_code}" >> "$GITHUB_OUTPUT"
35+
exit "${exit_code}"
3536
- name: Post API breakage report to PR
3637
if: ${{ always() && github.event_name == 'pull_request' }}
3738
uses: actions/github-script@v7

0 commit comments

Comments
 (0)