File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,3 +216,28 @@ jobs:
216216 files : flink-sql-runner/target/flink-sql-runner-${{ needs.cache-dependencies.outputs.project-version }}-${{ needs.cache-dependencies.outputs.flink-version-label }}.jar
217217 env :
218218 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
219+
220+ build :
221+ runs-on : ubuntu-latest
222+ timeout-minutes : 10
223+ needs : [ unit-test, integration-test ]
224+ if : always()
225+ steps :
226+ - name : Check test results
227+ run : |
228+ echo "Checking results of upstream jobs..."
229+ FAILED_JOBS=""
230+ NEEDS_JSON='${{ toJSON(needs) }}'
231+
232+ for job in $(echo "$NEEDS_JSON" | jq -r 'keys[]'); do
233+ result=$(echo "$NEEDS_JSON" | jq -r ".[\"$job\"].result")
234+ echo " $job: $result"
235+ if [[ "$result" != "success" ]]; then
236+ FAILED_JOBS="$FAILED_JOBS $job"
237+ fi
238+ done
239+
240+ if [[ -n "$FAILED_JOBS" ]]; then
241+ echo "One or more jobs did not succeed:$FAILED_JOBS"
242+ exit 1
243+ fi
You can’t perform that action at this time.
0 commit comments