Skip to content

Commit

Permalink
different bash
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu authored Mar 14, 2024
1 parent 171aeb3 commit b4b7a60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/compare_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
read package_name

echo "Finding version numbers for $package_name"

conda_version=$(conda search -c conda-forge $package_name | tail -n1 | awk '{print $2}')
echo "conda version=$conda_version"

pypi_version=$(get_pypi_latest_version $package_name)
echo "pypi version=$pypi_version"

if ["$conda_version" != "$pypi_version"]
then
exit 1
4 changes: 1 addition & 3 deletions .github/workflows/version_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jobs:
python -m pip install --upgrade pip
pip install get_pypi_latest_version
- name: hipscat version check
uses: ./.github/actions/check_versions
with:
package-name: hipscat
run: bash compare_versions.sh hipscat
- name: hipscat-import version check
uses: ./.github/actions/check_versions
with:
Expand Down

0 comments on commit b4b7a60

Please sign in to comment.