From f84cc424b1c53cb83818fd17b3aaee55d1c0518d Mon Sep 17 00:00:00 2001 From: Slava Date: Mon, 28 Aug 2023 18:39:16 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49fbb85..5077052 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,19 +3,14 @@ stages: - release -# variables: -# PROJECT_TRANSLATE: 'glpat-ZMsMVQkmDvsEYUiqhfq7' -image: python:3.10 -.pre: - stage: .pre - script: - - echo "testing" prepare_job: stage: prepare + image: python:3.10 script: - 'pip install requests' + - rm -rf {.git, ,gitattributes, .gitlab-ci.yml, CHANGELOG, README.md} - 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git' - 'ls -al' - 'python3 translation-generator/main.py $CI_PROJECT_DIR/data/' @@ -23,9 +18,10 @@ prepare_job: -release_job: + +needs: dependencies: - - prepare_job + - prepare_job stage: release # It only runs when *both* jobs in the test stage complete successfully. image: registry.gitlab.com/gitlab-org/release-cli:latest