Skip to content

Commit 8ff3faa

Browse files
authored
Replace path expansion with find in canary-release (#251)
* Use extglob * Replace extglob with find
1 parent d795e83 commit 8ff3faa

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

canary-release/action.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ runs:
8585
conda build --croot=./pkgs ${{ inputs.conda-build-arguments }} ${{ inputs.conda-build-path }}
8686
echo "::endgroup::"
8787
88+
echo "::group::Find packages"
89+
PACKAGES=(
90+
$(
91+
find "./pkgs/${{ inputs.subdir }}" -type f \
92+
\( \
93+
-name "${{ inputs.package-name }}-*.tar.bz2" -o \
94+
-name "${{ inputs.package-name }}-*.conda" \
95+
\)
96+
)
97+
)
98+
echo "::endgroup::"
99+
88100
echo "::group::Uploading package"
89101
anaconda \
90102
--token="${{ inputs.anaconda-org-token }}" \
@@ -94,9 +106,9 @@ runs:
94106
--no-progress \
95107
--user="${{ inputs.anaconda-org-channel }}" \
96108
--label="${{ inputs.anaconda-org-label }}" \
97-
./pkgs/${{ inputs.subdir }}/${{ inputs.package-name }}-*{.tar.bz2,.conda}
109+
"${PACKAGES[@]}"
98110
echo "Uploaded the following files:"
99-
basename -a ./pkgs/${{ inputs.subdir }}/${{ inputs.package-name }}-*{.tar.bz2,.conda}
111+
basename -a "${PACKAGES[@]}"
100112
echo "::endgroup::"
101113
102114
echo "Use this command to try out the build:"

0 commit comments

Comments
 (0)