Skip to content

Commit

Permalink
Fix GHA ide integration tests (gitpod-io#19651)
Browse files Browse the repository at this point in the history
* Fix GHA ide integration tests

* Only get job result
  • Loading branch information
mustard-mh authored Apr 23, 2024
1 parent 612a581 commit d22ea5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ide-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ jobs:
} >> $GITHUB_OUTPUT
else
# others
RUNID=$(gh run list -R gitpod-io/gitpod -b main -w Build --limit 1 --json databaseId --jq .[0].databaseId)
if ! gh run watch "$RUNID" --exit-status -R gitpod-io/gitpod >/dev/null 2>&1; then
RUNID=$(gh run list -R gitpod-io/gitpod -b main -w build.yml --limit 1 --json databaseId --jq .[0].databaseId)
gh run watch "$RUNID" -R gitpod-io/gitpod
CONCLUSION=$(gh run view "$RUNID" -R gitpod-io/gitpod --json jobs --jq '.jobs[] | select(.name == "Build Gitpod") | {name, status, conclusion} | .conclusion')
if [ "$CONCLUSION" != "success" ]; then
echo main branch build is failed, see https://github.com/gitpod-io/gitpod/actions/runs/"$RUNID" for detail | tee -a $GITHUB_STEP_SUMMARY
exit 1
fi
Expand Down

0 comments on commit d22ea5c

Please sign in to comment.