Skip to content

Commit

Permalink
explicitly install and run dunamai within environment to retrieve ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
zacharyburnett committed Oct 14, 2024
1 parent 640ceeb commit c054982
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ jobs:
conda
init-shell: none
generate-run-shell: true
- id: version
run: |
pip install dunamai
echo version=$(dunamai from any --strict --pattern "default-unprefixed" --style semver) >> $GITHUB_OUTPUT
pip uninstall dunamai
- run: pip install .
- run: pip list
- id: version
uses: mtkennerly/dunamai-action@v1
with:
args: --strict --pattern "default-unprefixed" --style semver
- id: filename
run: echo "filename=jwql_${{ steps.version.outputs.version }}_conda_${{ runner.os }}_${{ runner.arch }}_py${{ matrix.python-version }}.yml" >> $GITHUB_OUTPUT
- run: conda env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.filename.outputs.filename }}
Expand Down

0 comments on commit c054982

Please sign in to comment.