From 587daf2a17e890a33dcf52c670bcaf83565abf57 Mon Sep 17 00:00:00 2001 From: tison Date: Mon, 20 May 2024 11:00:37 +0800 Subject: [PATCH] ci: fixup strings in check ci status Signed-off-by: tison --- .github/workflows/nightly-build.yml | 2 +- cyborg/bin/report-ci-failure.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 05ddf232c345..e3311f2902ea 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -305,7 +305,7 @@ jobs: run: pnpm tsx bin/report-ci-failure.ts env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CI_REPORT_STATUS: ${{ needs.release-images-to-dockerhub.outputs.build-result == 'success' }} + CI_REPORT_STATUS: ${{ needs.release-images-to-dockerhub.outputs.nightly-build-result == 'success' }} - name: Notify nightly build successful result uses: slackapi/slack-github-action@v1.23.0 if: ${{ needs.release-images-to-dockerhub.outputs.nightly-build-result == 'success' }} diff --git a/cyborg/bin/report-ci-failure.ts b/cyborg/bin/report-ci-failure.ts index bc8e69b9eaa2..ece8ebb387b6 100644 --- a/cyborg/bin/report-ci-failure.ts +++ b/cyborg/bin/report-ci-failure.ts @@ -24,7 +24,7 @@ async function main() { core.info(`CI_REPORT_STATUS=${process.env["CI_REPORT_STATUS"]}, resolved to ${success}`) const client = obtainClient("GITHUB_TOKEN") - const title = `Workflow run '${context.action}' failed` + const title = `Workflow run '${context.workflow}' failed` const url = `${process.env["GITHUB_SERVER_URL"]}/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}` const failure_comment = `@GreptimeTeam/db-approver\nNew failure: ${url} ` const success_comment = `@GreptimeTeam/db-approver\nBack to success: ${url}`