From 24c2268d348b8e3c42b5e7e95af5ccdab192ea55 Mon Sep 17 00:00:00 2001 From: Stella Date: Thu, 2 Nov 2023 09:51:44 +0100 Subject: [PATCH] Move print of Pharmpy version to deploy workflow --- .github/workflows/deploy.yaml | 9 ++++++++- .github/workflows/main.yaml | 7 ------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6c133b9..f403e0f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,8 +12,15 @@ jobs: build-docs: runs-on: ubuntu-20.04 + needs: check-pharmr steps: - name: Print path working-directory: pharmr_repo run: | - pwd \ No newline at end of file + pwd + + - name: Get Pharmpy version + working-directory: pharmpy_repo + run: | + echo "pharmpy_version=`git describe --tags`" >> $GITHUB_ENV + git branch -v diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4175f8c..228c2ed 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -99,13 +99,6 @@ jobs: run: | git checkout -b release_latest "$(git rev-list --tags --max-count=1)" - - name: Set up Pharmpy release version - working-directory: pharmpy_repo - if: ${{ inputs.as-release == true && runner.os == 'Linux' }} - run: | - echo "pharmpy_version=`git describe --tags`" >> $GITHUB_ENV - git branch -v - - name: Install Pharmpy in venv working-directory: pharmpy_repo if: runner.os != 'Windows'