Skip to content

Commit

Permalink
Correct if-statement for getting tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stellabelin committed Dec 8, 2023
1 parent 93f5149 commit 957498e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/actions/setup-pharmr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ runs:
working-directory: pharmpy_repo
if: ${{ inputs.as-release == true }}
run: |
git checkout -b release_latest "$(git rev-list --tags --max-count=1)"
shell: bash

- name: Store Pharmpy version as env variable
working-directory: pharmpy_repo
if: ${{ inputs.as-release == true && runner.os == 'Linux'}}
run: |
git checkout -b release_latest "$(git rev-list --tags --max-count=1)"
echo "pharmpy_version=`git describe --tags`" >> $GITHUB_ENV
shell: bash

Expand Down

0 comments on commit 957498e

Please sign in to comment.