This is an automated email from the ASF dual-hosted git repository.
weitingchen pushed a commit to branch branch-1.2
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/branch-1.2 by this push:
new a7aacafcbe support CK backend CI/CD in branch-1.2 (#7936)
a7aacafcbe is described below
commit a7aacafcbed7d4ea3955d836c16f77e9f6d7d9c2
Author: Wei-Ting Chen <[email protected]>
AuthorDate: Wed Nov 13 22:27:10 2024 +0800
support CK backend CI/CD in branch-1.2 (#7936)
---
.github/workflows/clickhouse_be_trigger.yml | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/clickhouse_be_trigger.yml
b/.github/workflows/clickhouse_be_trigger.yml
index 11e7543559..a96f216e7c 100644
--- a/.github/workflows/clickhouse_be_trigger.yml
+++ b/.github/workflows/clickhouse_be_trigger.yml
@@ -43,9 +43,20 @@ jobs:
sleep 15
- name: Add comment to PR
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- COMMENT="Run Gluten Clickhouse CI"
- URL=$(jq -r .pull_request.comments_url "$GITHUB_EVENT_PATH")
- curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST -d
"{\"body\":\"$COMMENT\"}" "${URL}"
+ uses: actions/github-script@v7
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ const issueNumber = context.payload.number;
+ let body;
+ if (issueNumber % 10 === 0) {
+ body = "Run Gluten ClickHouse CI on ARM";
+ } else {
+ body = "Run Gluten Clickhouse CI on x86";
+ }
+ await github.rest.issues.createComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: issueNumber,
+ body: body
+ });
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]