Trying other way

This commit is contained in:
alesapin 2021-11-09 14:10:57 +03:00
parent 11b1600c23
commit 6af1a2ee6a
2 changed files with 2 additions and 12 deletions

View File

@ -19,22 +19,12 @@ jobs:
- name: Cherry pick
env:
TEMP_PATH: ${{runner.temp}}/cherry_pick
REPO_COPY: ${{runner.temp}}/cherry_pick/ClickHouse
ROBOT_CLICKHOUSE_SSH_KEY: ${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
REPO_OWNER: "ClickHouse"
REPO_NAME: "ClickHouse"
REPO_TEAM: "core"
run: |
ls -la "$GITHUB_WORKSPACE"
echo "Checking WORKSPACE"
ls -la "$GITHUB_WORKSPACE/tests/ci"
echo "COPY REPO"
cp -r "$GITHUB_WORKSPACE" $TEMP_PATH
echo "Checking $TEMP_PATH"
ls -la "$TEMP_PATH"
echo "Checking $REPO_COPY"
ls -la "$REPO_COPY"
cd $REPO_COPY/tests/ci
cd $GITHUB_WORKSPACE/tests/ci
python3 cherry_pick.py
- name: Cleanup
if: always()

View File

@ -13,7 +13,7 @@ from cherry_pick_utils.cherrypick import CherryPick
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
repo_path = os.path.join(os.getenv("REPO_COPY", os.path.abspath("../../")))
repo_path = os.path.join(os.getenv("GITHUB_WORKSPACE", os.path.abspath("../../")))
temp_path = os.path.join(os.getenv("TEMP_PATH"))
if not os.path.exists(temp_path):