ClickHouse/.github/workflows/cherry_pick.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2021-11-08 14:30:27 +00:00
name: CherryPick
env:
# Force the stdout and stderr streams to be unbuffered
PYTHONUNBUFFERED: 1
2021-11-08 14:30:27 +00:00
concurrency:
group: cherry-pick
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 * * * *'
2022-06-15 14:37:44 +00:00
workflow_dispatch:
2021-11-08 14:30:27 +00:00
jobs:
CherryPick:
runs-on: [self-hosted, style-checker-aarch64]
2021-11-08 14:30:27 +00:00
steps:
2021-12-09 18:09:46 +00:00
- name: Set envs
# https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#multiline-strings
2021-12-09 18:09:46 +00:00
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/cherry_pick
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
RCSK
2021-12-09 18:09:46 +00:00
REPO_OWNER=ClickHouse
REPO_NAME=ClickHouse
REPO_TEAM=core
EOF
2021-11-08 14:30:27 +00:00
- name: Check out repository code
2022-12-23 16:54:19 +00:00
uses: ClickHouse/checkout@v1
2021-11-09 12:29:03 +00:00
with:
clear-repository: true
2021-11-09 19:23:48 +00:00
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
2021-11-09 12:29:57 +00:00
fetch-depth: 0
2024-09-13 15:20:49 +00:00
- name: Debug Info
uses: ./.github/actions/debug
2021-11-08 14:30:27 +00:00
- name: Cherry pick
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
2021-11-08 14:30:27 +00:00
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"