Skip to content

Commit

Permalink
[GLUTEN-6915][CH] Follow VL, fix github issue comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lwz9103 committed Aug 20, 2024
1 parent 221f0f8 commit 0f243c1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/clickhouse_be_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,21 @@ on:
jobs:
add-comment:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Sleep for Dev PR workflow done
run: |
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: |
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.number,
body: "Run Gluten Clickhouse CI"
});

0 comments on commit 0f243c1

Please sign in to comment.