Get Anaconda package version
ActionsTags
(2)A GitHub Action to get the latest version of a package from Anaconda.
name: My Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run action
uses: jacobtomlinson/gha-anaconda-package-version@master
with:
org: anaconda
package: python
version_system: SemVer
Input | Description |
---|---|
org |
The Anaconda user or organization |
package |
The name of the Python package |
version_system |
The name of the version system: SemVer (default) or CalVer . |
Output | Description |
---|---|
version |
The version of the package |
Here is an example of getting the version of the latest Anaconda Python distribution and printing it out in the next step.
name: My Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get latest Anaconda Python version
id: anaconda
uses: jacobtomlinson/gha-anaconda-package-version@master
with:
org: anaconda
package: python
version_system: SemVer
- name: Check outputs
run: |
echo "The latest version of Python is ${{ steps.anaconda.outputs.version }}."
Get Anaconda package version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.