From dd8240b020d08142a793dda65a5a6dd2e6ec6b07 Mon Sep 17 00:00:00 2001 From: Niket <15953349+niketagrawal@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:09:51 +0200 Subject: [PATCH] fix #252: Install python dependencies inside a virtual environment. Remove obsolete code: Github token is not needed to run the bumpversion command. --- .../workflows/bump_dev_version_nightly.yml | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/bump_dev_version_nightly.yml b/.github/workflows/bump_dev_version_nightly.yml index 514876c80..9403fdb34 100644 --- a/.github/workflows/bump_dev_version_nightly.yml +++ b/.github/workflows/bump_dev_version_nightly.yml @@ -63,17 +63,14 @@ jobs: with: ref: develop - - name: Install bump2version - run: pip install bump2version - - - name: Bump version - id: bump_version + - name: Install bump2version and run bumpversion run: | - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" - bump2version dev --config-file .bumpversion.cfg --verbose - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + python3 -m venv venv + source venv/bin/activate + pip install bump2version + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + bump2version dev --config-file .bumpversion.cfg --verbose - name: Push tag to tudat repository run: git push origin --follow-tags @@ -94,14 +91,14 @@ jobs: token: ${{ secrets.BUMP_VERSION_NIGHTLY }} ref: develop - - name: Install bump2version - run: pip install bump2version - - - name: Bump version on feedstock + - name: Install bump2version and run bumpversion run: | - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" - bump2version dev --config-file .bumpversion.cfg --verbose + python3 -m venv venv + source venv/bin/activate + pip install bump2version + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + bump2version dev --config-file .bumpversion.cfg --verbose - name: Reset build number in meta.yml to 0 shell: bash