mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
36 lines
1007 B
YAML
36 lines
1007 B
YAML
name: CherryPick
|
|
concurrency:
|
|
group: cherry-pick
|
|
on: # yamllint disable-line rule:truthy
|
|
schedule:
|
|
- cron: '0 */3 * * *'
|
|
jobs:
|
|
CherryPick:
|
|
runs-on: [self-hosted, style-checker]
|
|
steps:
|
|
- name: Set envs
|
|
run: |
|
|
cat >> "$GITHUB_ENV" << 'EOF'
|
|
TEMP_PATH=${{runner.temp}}/cherry_pick
|
|
ROBOT_CLICKHOUSE_SSH_KEY=${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
|
|
REPO_OWNER=ClickHouse
|
|
REPO_NAME=ClickHouse
|
|
REPO_TEAM=core
|
|
EOF
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
|
|
fetch-depth: 0
|
|
- name: Cherry pick
|
|
run: |
|
|
sudo pip install GitPython
|
|
cd $GITHUB_WORKSPACE/tests/ci
|
|
python3 cherry_pick.py
|
|
- name: Cleanup
|
|
if: always()
|
|
run: |
|
|
docker kill $(docker ps -q) ||:
|
|
docker rm -f $(docker ps -a -q) ||:
|
|
sudo rm -fr $TEMP_PATH
|