From 5f6a67c2b28ddcb6efef6d568997efaae406958c Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 30 Sep 2022 20:18:42 +0200 Subject: [PATCH] [ci] Add job to update windows deps #16 --- .gitlab-ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 502b7a5..e42faec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,10 +42,10 @@ update_windows_deps: when: never - if: $CI_COMMIT_BRANCH == "main" when: always - #- changes: - # - Pipfile - # - Pipfile.lock - # when: always + - changes: + - Pipfile + - Pipfile.lock + when: always before_script: - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - choco install python --version=$PYTHON_VERSION -y --no-progress @@ -60,20 +60,20 @@ update_windows_deps: # commit from linux, because setting up SSH in Windows is a fucking nightmare commit_windows_deps: - needs: - - update_windows_deps + #needs: + # - update_windows_deps image: alpine before_script: - apk add --update git openssh-client - eval $(ssh-agent -s) - - echo "$WINDOWS_SSH_PRIVATE_KEY" | ssh-add - + - echo "$SSH_PRIVATE_KEY_REPO_WRITE" | ssh-add - - git config --global user.name "Gitlab CI" - git config --global user.email "ci@gitlab.com" - git remote rm origin && git remote add origin "git@gitlab.com:${CI_PROJECT_PATH}.git" script: - dos2unix Pipfile.lock - - git commit -m "Updated windows deps from CI" Pipfile.lock || echo "No changes" - - git push $HEAD:$CI_COMMIT_REF_NAME + - git commit -m "Updated windows deps from CI" Pipfile.lock + - git push HEAD:$CI_COMMIT_REF_NAME package_linux: needs: