ClickHouse/.github/workflows/backport.yml

33 lines
939 B
YAML
Raw Normal View History

2021-11-08 14:30:27 +00:00
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: Check out repository code
uses: actions/checkout@v2
2021-11-09 12:29:03 +00:00
with:
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
2021-11-08 14:30:27 +00:00
- name: Cherry pick
env:
TEMP_PATH: ${{runner.temp}}/cherry_pick
2021-11-09 17:40:23 +00:00
ROBOT_CLICKHOUSE_SSH_KEY: ${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
2021-11-08 14:30:27 +00:00
REPO_OWNER: "ClickHouse"
REPO_NAME: "ClickHouse"
REPO_TEAM: "core"
run: |
2021-11-09 11:18:58 +00:00
sudo pip install GitPython
2021-11-09 11:10:57 +00:00
cd $GITHUB_WORKSPACE/tests/ci
2021-11-08 14:30:27 +00:00
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