mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: CherryPick
|
|
|
|
env:
|
|
# Force the stdout and stderr streams to be unbuffered
|
|
PYTHONUNBUFFERED: 1
|
|
|
|
concurrency:
|
|
group: cherry-pick
|
|
on: # yamllint disable-line rule:truthy
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
CherryPick:
|
|
runs-on: [self-hosted, style-checker-aarch64]
|
|
steps:
|
|
- name: Set envs
|
|
# https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#multiline-strings
|
|
run: |
|
|
cat >> "$GITHUB_ENV" << 'EOF'
|
|
TEMP_PATH=${{runner.temp}}/cherry_pick
|
|
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
|
|
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
|
|
RCSK
|
|
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 ps --quiet | xargs --no-run-if-empty docker kill ||:
|
|
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
|
|
sudo rm -fr "$TEMP_PATH"
|