-
Notifications
You must be signed in to change notification settings - Fork 161
38 lines (32 loc) · 1.09 KB
/
clickhouse-cloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Run ClickBench on ClickHouse Cloud"
on:
workflow_dispatch: # This allows manual trigger from the UI
schedule:
- cron: '10 10 * * *'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: "[bot] update results for ClickHouse Cloud"
CI_COMMIT_AUTHOR: github
steps:
- uses: actions/[email protected]
- run: |
export ORGANIZATION=${{ secrets.CLICKHOUSE_CLOUD_ORGANIZATION }}
export KEY_ID=${{ secrets.CLICKHOUSE_CLOUD_KEY_ID }}
export KEY_SECRET=${{ secrets.CLICKHOUSE_CLOUD_KEY_SECRET }}
cd clickhouse-cloud
curl https://clickhouse.com/ | sh
sudo ./clickhouse install -y
bash combinations.sh
bash collect-results.sh
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "${{ env.CI_COMMIT_AUTHOR }}@users.noreply.github.com"
git add results/*.json
if git status | grep -q modified
then
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
fi