mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: AutoRelease
|
|
|
|
env:
|
|
# Force the stdout and stderr streams to be unbuffered
|
|
PYTHONUNBUFFERED: 1
|
|
|
|
concurrency:
|
|
group: auto-release
|
|
on: # yamllint disable-line rule:truthy
|
|
# schedule:
|
|
# - cron: '0 10-16 * * 1-5'
|
|
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: ClickHouse/checkout@v1
|
|
with:
|
|
clear-repository: true
|
|
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
|
|
fetch-depth: 0
|
|
- name: Auto-release
|
|
run: |
|
|
cd "$GITHUB_WORKSPACE/tests/ci"
|
|
python3 auto_release.py --release-after-days=3
|
|
- 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"
|