You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/workspace-integration-tests.yml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,10 @@ jobs:
89
89
echo "version=${{ inputs.version }}"
90
90
} >> $GITHUB_OUTPUT
91
91
else
92
-
# Search the last 10 builds regardless of status (success and failed)
93
-
RUNID=$(gh run list --repo gitpod-io/gitpod --branch main --workflow build.yml --limit 10 --json createdAt,conclusion,databaseId --jq 'map(select(.conclusion == "success")) | sort_by(.createdAt) | .[-1] | .databaseId')
92
+
# Search the last 10 completed builds (any conclusion except null/in-progress)
93
+
RUNID=$(gh run list --repo gitpod-io/gitpod --branch main --workflow build.yml --limit 10 --json createdAt,conclusion,databaseId --jq 'map(select(.conclusion != null)) | sort_by(.createdAt) | .[-1] | .databaseId')
94
94
if [ "$RUNID" == "" ]; then
95
-
echo no successful build found on main branch in the last 10 commits, see https://github.com/gitpod-io/gitpod/actions/workflows/build.yml for details | tee -a $GITHUB_STEP_SUMMARY
95
+
echo no completed build found on main branch in the last 10 commits, see https://github.com/gitpod-io/gitpod/actions/workflows/build.yml for details | tee -a $GITHUB_STEP_SUMMARY
96
96
# if we got here, it means in the last 10 builds on main, there wasn't a success, and then we'll keep getting this message
97
97
# to fix, manually trigger the tests with the latest main-gha asset till we get a success
98
98
# you might have to fix or disable flakey tests to do this
@@ -102,8 +102,12 @@ jobs:
102
102
exit 1
103
103
fi
104
104
105
+
echo "Using RUNID $RUNID" | tee -a $GITHUB_STEP_SUMMARY
0 commit comments