jacobtomlinson / gha-anaconda-package-version

Get the latest version of an Anaconda package
MIT License
3 stars 4 forks source link

add option to specify version system #5

Closed jhamman closed 4 years ago

jhamman commented 4 years ago

We noticed today that this action only works for conda packages that use semver. When pointing to packages that use CalVer, the SemVer package strips leading zeros in dates. This PR adds the option to specify a version_system option:

name: My Workflow
on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Get latest Anaconda Python version
      id: anaconda
      uses: jacobtomlinson/gha-anaconda-package-version@master
      with:
        org: conda-forge
        package: pangeo-notebook
        version_system: SemVer
jacobtomlinson commented 4 years ago

Thanks! I tweaked the integration test a little as I only recently learned how to correctly reference self in an action 😆.