Skip to content

Commit

Permalink
support CK backend CI/CD in branch-1.2 (#7936)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiting-chen authored Nov 13, 2024
1 parent 4e9d165 commit a7aacaf
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/clickhouse_be_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

0 comments on commit a7aacaf

Please sign in to comment.