Skip to content

Commit fa9c465

Browse files
authored
fix(ci): fix search pattern to promote packages (#3143) (#3146)
1 parent fe8a79d commit fa9c465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/promote-to-stable/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ runs:
106106
fi
107107
108108
# Upload previously downloaded candidates to TARGET_PATH
109-
for ARTIFACT_DL in $(ls | grep ".rpm" || true); do
109+
for ARTIFACT_DL in $(find . -maxdepth 1 -type f -name '*.rpm' -printf '%f\n'); do
110110
echo "[DEBUG] - Promoting (upload) $ARTIFACT_DL to stable $TARGET_PATH."
111111
jf rt upload "$ARTIFACT_DL" "$TARGET_PATH" --flat $DRY_RUN_FLAG
112112
done
@@ -189,7 +189,7 @@ runs:
189189
DRY_RUN_FLAG=""
190190
fi
191191
192-
for ARTIFACT_DL in $(ls | grep ".deb" || true); do
192+
for ARTIFACT_DL in $(find . -maxdepth 1 -type f -name '*.deb' -printf '%f\n'); do
193193
ARCH=$(echo $ARTIFACT_DL | cut -d '_' -f3 | cut -d '.' -f1)
194194
if [[ "${{ inputs.major_version }}" < "25.05" ]]; then
195195
POOL_SUBPATH="${{ inputs.module_name }}"

0 commit comments

Comments
 (0)