mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-23 06:30:05 +00:00
ci: fixup strings in check ci status (#3987)
Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
2
.github/workflows/nightly-build.yml
vendored
2
.github/workflows/nightly-build.yml
vendored
@@ -305,7 +305,7 @@ jobs:
|
|||||||
run: pnpm tsx bin/report-ci-failure.ts
|
run: pnpm tsx bin/report-ci-failure.ts
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Notify nightly build successful result
|
||||||
uses: slackapi/slack-github-action@v1.23.0
|
uses: slackapi/slack-github-action@v1.23.0
|
||||||
if: ${{ needs.release-images-to-dockerhub.outputs.nightly-build-result == 'success' }}
|
if: ${{ needs.release-images-to-dockerhub.outputs.nightly-build-result == 'success' }}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ async function main() {
|
|||||||
core.info(`CI_REPORT_STATUS=${process.env["CI_REPORT_STATUS"]}, resolved to ${success}`)
|
core.info(`CI_REPORT_STATUS=${process.env["CI_REPORT_STATUS"]}, resolved to ${success}`)
|
||||||
|
|
||||||
const client = obtainClient("GITHUB_TOKEN")
|
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 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 failure_comment = `@GreptimeTeam/db-approver\nNew failure: ${url} `
|
||||||
const success_comment = `@GreptimeTeam/db-approver\nBack to success: ${url}`
|
const success_comment = `@GreptimeTeam/db-approver\nBack to success: ${url}`
|
||||||
|
|||||||
Reference in New Issue
Block a user