Skip to content

Commit

Permalink
Replace path expansion with find in canary-release (#251)
Browse files Browse the repository at this point in the history
* Use extglob

* Replace extglob with find
  • Loading branch information
kenodegard authored Jan 16, 2025
1 parent d795e83 commit 8ff3faa
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions canary-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ runs:
conda build --croot=./pkgs ${{ inputs.conda-build-arguments }} ${{ inputs.conda-build-path }}
echo "::endgroup::"
echo "::group::Find packages"
PACKAGES=(
$(
find "./pkgs/${{ inputs.subdir }}" -type f \
\( \
-name "${{ inputs.package-name }}-*.tar.bz2" -o \
-name "${{ inputs.package-name }}-*.conda" \
\)
)
)
echo "::endgroup::"
echo "::group::Uploading package"
anaconda \
--token="${{ inputs.anaconda-org-token }}" \
Expand All @@ -94,9 +106,9 @@ runs:
--no-progress \
--user="${{ inputs.anaconda-org-channel }}" \
--label="${{ inputs.anaconda-org-label }}" \
./pkgs/${{ inputs.subdir }}/${{ inputs.package-name }}-*{.tar.bz2,.conda}
"${PACKAGES[@]}"
echo "Uploaded the following files:"
basename -a ./pkgs/${{ inputs.subdir }}/${{ inputs.package-name }}-*{.tar.bz2,.conda}
basename -a "${PACKAGES[@]}"
echo "::endgroup::"
echo "Use this command to try out the build:"
Expand Down

0 comments on commit 8ff3faa

Please sign in to comment.